Sie sind auf Seite 1von 331

User Guide

InVision 3.5

Manual version 1.0


Supporting Software Version 3.5.x

Compac Sorting Equipment Ltd


11 Spring St, Onehunga 1061
PO Box 13 516, Onehunga 1643
Auckland, NEW ZEALAND

Phone: +64 9 634 0088


Fax: +64 9 634 4491
Web: http://www.compacsort.com
Email: info@compacsort.com

DOC-MNCINVS35 V1.0
INVISION 3.5 USER GUIDE

Copyright © 2010 Compac Sorting Equipment Ltd


The material in this manual is copyrighted and may not be reproduced in any
form without the express prior approval of Compac Sorting Equipment
Limited. The content of this manual is considered Compac Sorting
Equipment's private data and is reproduced for the exclusive use of the
client. Compac Sorting Equipment retains intellectual property rights and
ownership over all material in this manual.

Warning and Disclaimer


This manual is designed to provide information about the Compac system.
Every effort has been made to make this manual as accurate as possible, but
no warranty or fitness is implied. All the information is provided on an ‘as is’
basis. The author and Compac Sorting Equipment Limited shall accept
neither liability nor responsibility to any person or entity with respect to any
loss or damages arising from the information contained in this manual or
from the use of the Compac system that accompanies it.
Information contained in this manual is subject to change without notice. The
manufacturer of the system will not be held responsible for technical or
editorial omissions made herein, nor for the incidental or consequential
damages resulting from its furnishing, performance, functionality or use.
Subsequent changes to this manual will be incorporated into the next edition.
We welcome any suggestion regarding this manual or our products.

2 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION 3.5 USER GUIDE

Table of Contents
Page
Section 1 – Getting Started...............................................................................................6
About InVision ...............................................................................................................7
Key Concepts ..............................................................................................................11
Setting up and Using InVision .....................................................................................16
Starting InVision ..........................................................................................................17
Changing Security Access Levels...............................................................................18
Exiting and Shutting Down InVision ............................................................................19
Main Menu, Toolbar and Status Bar ...........................................................................20
Section 2 – Creating and Testing a Basic Variety ........................................................25
About the Variety and Offline Screens ........................................................................26
Steps Required to Set Up a Variety in InVision ..........................................................30
Create the Variety .......................................................................................................31
Set up Grade Grid Characteristics ..............................................................................34
Create the Color Map ..................................................................................................37
Set up Grade Grid Grades and Values .......................................................................43
Test and Fine Tune the Variety ...................................................................................49
The Variety and Offline Screen Toolbar Options ........................................................51
The Variety and Offline Status Bar .............................................................................54
Section 3 – InVision Screens and Windows .................................................................55
Status Screen ..............................................................................................................56
Variety and Offline Screens ........................................................................................57
Select Fruit Variety window options .................................................................................. 57
Fruit Variety Information window options .......................................................................... 59
Blemish Grading Parameters tab options ......................................................................... 64
Texture Grading Parameters tab options .......................................................................... 68
Video Screen...............................................................................................................70
Alarms Screen .............................................................................................................71
Images Screen ............................................................................................................72
Info Screen ..................................................................................................................72
Iris Setting Window .....................................................................................................75
Fruit Limits Screen ......................................................................................................82
Vision Dialog Pop-ups .................................................................................................83
Section 4 – Advanced Grading - Concepts and Grading Options ..............................85
Summary of Grading Options .....................................................................................86
Getting Started with Advanced Grading......................................................................89
How InVision Grades ........................................................................................................ 89
Select Category (and Characteristics) window options ..................................................... 91
The Grade Grid Right-click Menu ..................................................................................... 94
Guidelines for Grading ................................................................................................96
Setting Cut-off Point Values for Grading ........................................................................... 96
Overlapping values ........................................................................................................... 96
Criterion Linking ................................................................................................................ 96
Grade Title Colorization .................................................................................................... 98
Grading on "Good" produce color versus "Bad" produce color ......................................... 99
Using the Histogram data to fine-tune cut-off point values ............................................. 100
Avoiding Gaps between Grades ..................................................................................... 102
Using ‘OR’ Condition Grading ......................................................................................... 103
Special Advanced Features - Power Settings and Seed Editing .................................... 107
Using Captured Images to Refine Grading ...............................................................109
Capturing Single Pieces of Sample Produce .................................................................. 109

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 3


INVISION 3.5 USER GUIDE

Table of Contents, continued

Understanding the Fruit Capture Grid Toolbar and Fields .............................................. 110
Capturing a Random Sample of Produce Images .......................................................... 112
About Viewing (and Saving) Captured Produce Images ................................................. 112
Setting up Capture options ............................................................................................. 113
Capturing Images Automatically for Grading Analysis .................................................... 116
Advanced Color Grading Options .............................................................................117
Grading using Function Color (or Uniform Color) ........................................................... 117
Grading on Color Combinations ..................................................................................... 126
Grading using 'Ignore' Fruit Color Mode (for fruit with labels) ......................................... 128
Less Frequently Used Grading Options ....................................................................129
Grading by Lanes (using Quality by Lane) ...................................................................... 129
Grading by Quality and Grade Optimization ................................................................... 130
Grading More than One Variety: Using Split Vision ..................................................137
Section 5 – Dimension (Size and Shape) Grading .....................................................139
About Dimension Grading .........................................................................................140
Grading By Size (Diameter and Volume) ..................................................................141
Grading by Shape .....................................................................................................145
‘Special’ Grades to Resolve Imaging and Positioning Problems ..............................152
More about working with Doubled or Touching Produce ..........................................156
Fruit Variety Options that affect Size and Shape Grading ........................................158
Size and Shape Grading Diagnostics .......................................................................161
Section 6 – Blemish (or Blob) Grading ........................................................................162
About Blemish Grading .............................................................................................163
Setting up your Variety to perform Blemish Grading ................................................165
Section 7 – Texture Grading .........................................................................................192
About Texture Grading ..............................................................................................193
Texture grading for Orange Puff and Crease (by classifying images) ......................195
Texture grading for Kiwifruit Botrytis (by classifying pixels) ......................................199
Texture grading for Kiwifruit Scale (by classifying pixels) .........................................201
To view the texture diagnostics .................................................................................204
Section 8 – Monitoring and Managing Your Processing ...........................................206
Viewing the System Status Screen ...........................................................................207
Viewing Captured Produce in the Images Screen ....................................................209
Viewing Live Video ....................................................................................................228
Viewing Information for Graded Produce (Info Screen) ............................................230
Viewing Graphs in InVision .......................................................................................232
Working with Alarms .................................................................................................233
Viewing Log Files of InVision Data ...........................................................................242
Using the Diagnostics Menu .....................................................................................243
Printing InVision Data................................................................................................244
Exporting InVision Data.............................................................................................244
Backing Up or Restoring InVision Data.....................................................................245
Appendix A – Tutorials .................................................................................................246
Tutorial 1: Create a Simple Two Color Variety ........................................................247
Part 1 - Create a Variety and a Simple Color Map .......................................................... 248
Part 2 - Capture Fruit and Set Up the Grade Grid .......................................................... 261
Part 3 - Run More Captures and Fine Tune the Grading ................................................ 267
Tutorial 2: Create a More Complex 3 Color Variety (and a Color Combination) .....273
Part 1 - Review the Grading ........................................................................................... 275
Part 2 - Change the Color Mapping ................................................................................ 278

4 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION 3.5 USER GUIDE

Table of Contents, continued

Part 3 - Change the Grade Grid Cut-off Points ............................................................... 287


Tutorial 3: Grade Apples for Blemish .......................................................................296
Part 1 - Set up good Color Mapping for the Variety ........................................................ 298
Part 2 - Review the results on more captured images (with blemish) ............................. 301
Part 3 - Try grading on a “Bad” Fruit Color characteristic ............................................... 304
Part 4 - Create a Defect Color to grade on ..................................................................... 307
Part 5 - Review the Good Skin map and adjust if necessary .......................................... 308
Part 6 - Map Blobs and No Blobs on the fruit captures ................................................... 311
Part 7 - Use Images view to check Blob Tracking Parameters ....................................... 321
Part 8 - Set Grade Cut-off Point values and check grading results ................................. 325
Part 9 - Add IR color for “really bad” blobs ...................................................................... 326
Part 10 - Set IRBad Cut-off Point values to achieve final grading result ......................... 330
Compac Service, Technical Support and Sales .........................................................331

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 5


INVISION 3.5 USER GUIDE

Section 1 – Getting Started

Overview
This Section provides an overview to starting up and using InVision systems.

In this Section
Page
About InVision .................................................................................................... 7
Key Concepts ................................................................................................... 11
Setting up and Using InVision .......................................................................... 16
Starting InVision ............................................................................................... 17
Changing Security Access Levels .................................................................... 18
Exiting and Shutting Down InVision ................................................................. 19
Main Menu, Toolbar and Status Bar ................................................................. 20

6 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

About InVision

Introduction
Compac Sorting Equipment’s InVision system takes images of produce being processed
by the sorting machine.
The images are analyzed to identify the visual characteristics that can be sorted on (such
as color, size and shape). After analysis, the grade and size of each piece of produce is
sent to the Compac Sizer software which then delivers the graded produce to the
appropriate outlet.
Please note:
Wherever the term "fruit" in used in this documentation or in the User Interface, it is used
as a generic term to refer to any type of produce that is run over your sorter. This
includes both fruit and vegetables.

InVision on your sorter


The three diagrams following illustrate the various components on a Multi Lane Sorter.

Example of InVision 7000/9000 System installed on a Multi Lane Sorter (MLS)

Front Section of Machine

Load Singulation Inspection Mid Section Drive


Belt Section Section Section
Section
InVision
Spill System
Cross
Conveyor Weigh Cross
Load
Section Conveyors
Belt

Computer Electronics
1st Roller 2nd Roller
System Power Supply
Rotation Rotation
Unit

MLS 500 Sorter Machine Sections - Side View (with InVision 7000/9000 series option)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 7


SECTION 1 – GETTING STARTED

About InVision, continued

Carrier
Carrier Righter
Washer

Sensor Bar

All TIp
Brush Drops
Ramps
Chutes
Camera Cabinet Main
Weigh Drive
Bridge

Upper Lights
Lower Lights Cross
Conveyors
TGV Divider and Outlets

Load Belts

Software
PC
Singulation Inspection
Section Section

MLS 500 Sorter Machine - Detailed Top View (with InVision 7000/9000 series option)

InVision Series and Models


The models within the InVision series provide different grading options.

InVision series
There are three InVision series: 5000, 7000 and 9000.
• 5000 has 1 camera viewing 2 lanes from the top only, with a resolution of
approximately 1 pixel per mm. This configuration is good for grading on color, size
(diameters and volume) and shape.
• 7000 has 2 cameras viewing 2 lanes from top only, with a resolution of 2 pixels per
mm. This configuration is good for blemish grading on elongated fruit (kiwifruit,
lemons) that will orient in a predictable way on our conveyor, plus it has all the
capabilities of the 5000 series.
• 9000 has 2 cameras viewing 1 lane from top and sides, with a resolution of 2 pixels
per mm. This configuration is good for blemish grading on any produce, plus it has
all the capabilities of the 5000 series.

8 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

About InVision, continued

InVision models
There are 3 InVision models in each series: C, IR and CIR. The models indicate the type
of camera that is used.
• C uses Color cameras only. This model is used for color and size and shape grading;
blemish and texture grading for citrus and other produce where Infrared (IR) cameras
have not been proven to be useful.
• IR uses Infrared cameras only. (Infrared cameras provide images in shades of grey -
similar to monochrome.) This model is used for size grading only, and only on series
5000 – i.e. 5000IR).
• CIR uses both Color and Infrared cameras. This model is used on 5000 series to
enhance the size and shape grading for dark produce that is hard to see properly with
color cameras only; and on 7000 and 9000 series for blemish grading on fruit with
thin skin (apples, kiwifruit) where the IR camera can be used to detect punctures and
other severe damage.

Configurations
Even though all these configurations can be supported, only a limited number are
recommended for use. In the 5000 series all 3 models are available; in the 7000 series
we only recommend 7000CIR (for kiwifruit); and in the 9000 series both C and CIR are
used, depending upon the varieties of produce to be graded.
All new CIR machines will now be using a synchronized cameras option, where pictures
are taken simultaneously from both the color and the IR camera to create a merged
image. This feature is referred to as “pixel-matched”. This gives significant advantage
in detecting stems on apples. Older CIR machines without synchronization may be
upgraded by adding some required hardware. Contact your local representative if you
wish to explore this option.
Note: InVision 7000 and 9000 series models can also provide a Texture grading feature
in some circumstances. Texture grading has proven useful for detecting puff and crease
on citrus (using color images). It can also be useful with kiwifruit for detecting Botrytis
(using IR images).

InVision computers (or "nodes")


The InVision software is installed on at least one InVision computer node (the "Master")
which is where all user interface occurs. This is where you enter all your InVision
commands and set up information and monitor your InVision grading.
Each InVision computer can process data for up to 4 cameras. Therefore 5000C and
5000IR can process up to 8 lanes, 5000 CIR - 4 lanes, 7000CIR and 9000C - 2 lanes,
and 9000CIR - 1 lane. If you have more lanes than the Master computer can control,
additional computers/nodes with InVision software installed are interfaced with the
Master. Additional computers are referred to as "Slaves".

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 9


SECTION 1 – GETTING STARTED

About InVision, continued

InVision grading
InVision sends information to the Sizer software for every carrier it sees.
If the carrier contains a piece of produce, then InVision sends:
• a grade (for blemish and color)
• two diameters (referred to as "major" and "minor")
• a volume.

If the carrier has no produce, then InVision advises Sizer of an “empty carrier”.

InVision determines a grade using the visual characteristics of the produce. These
characteristics are grouped into Categories. Fruit Categories and Characteristics
enable grading to be set up for many features including:
• Color
Color grading sorts produce into grades so that each grade has a consistent color
quality. For example Grade A may be all orange, Grade B may be orange with a little
yellow, and Grade C may be orange with a lot of yellow and green.

• Size
InVision size grading is based on diameters of the piece of produce. Sizer uses
InVision’s dimension data in conjunction with the Sizer weight information to sort
produce into grades of a consistent physical size. InVision can measure many
different diameters or sizes.

• Shape
Shape grading sorts produce so that each grade is a consistent shape. For example
Grade A may be fruit that are as close to round as possible, Grade B may be fruit that
range from round to slightly oval, and Grade C may be fruit that are definitely oval.

• Volume
Volume is the amount of space a piece of produce takes up. InVision collects volume
data and passes it to Sizer. Sizer then uses the data, in conjunction with the Sizer
weight information, to perform density grading.
(Density is the weight linked to the unit volume for a piece of produce. For example,
if two pieces of produce weigh the same, but one is smaller in its volume, the smaller
volume piece has a higher density.)

• Blemish
Blemish is a way of grading produce based on small marks on their surface. These
marks or blemishes will generally be very small and the total area of all the blemishes
on a piece of produce will be negligible compared to the total produce area. While
the percentage of the blemish area may be very low, these marks can have a very
significant effect on the produce value (for example hail damage on apples).
Sometimes clever use of Color grading alone can detect these blemishes correctly,
but in most cases it requires a separate blemish grading solution. Blemish grading is
only available on InVision 7000 and 9000 series.

• Texture
Texture is a way of identifying the appearance of a piece of fruit, i.e. whether it is
smooth or rough. This is an additional software feature that is sold separately. It is
used for citrus (mainly oranges) to detect puff and crease, and to separate smooth
skinned oranges from “pebbly” oranges. Texture is also used for detecting botrytis
and scale on kiwifruit.

10 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

About InVision, continued

Additionally there are some Special Grading options that allow InVision to correct for
grading errors or ambiguities by isolating produce at a specific outlet or recycling them for
re-grading (such as Touching, Slipping, Oversized produce, etc).

Key Concepts

To enable grading in InVision, you will need grading criteria set up for every produce
Variety you sort. (This is done using the Variety or Offline variety screens.)
Each Variety has a Fruit Color Map and a Grade Grid. The Fruit Color Map teaches
InVision how to identify various characteristics of the produce. The Grade Grid specifies
how much of each characteristic a piece of produce must have to be assigned to a
particular grade.
There are additional Categories you can set up to sort on (e.g. Size, Shape, etc).
These key concepts are explained in more detail below.

Fruit Varieties and the ‘Active’ Variety


All InVision grading is based on the concept of a Fruit Variety.
A Variety does not have to correspond to the fruit or vegetable’s botanical variety. For
example, you may want to set up different early, mid and late season Varieties for a
botanical variety.
Every Variety has its own:
• Variety Settings
• Grade Grid
• Color Map(s)
You will need to set up a Fruit Variety for every variety of produce that needs vision
grading on your sorter.
Note that if your clients have different grading requirements for the same Variety type,
you may need to set up Varieties that are customer specific. A Variety can be copied to a
new name, and then edited as necessary to change the color mapping and grade grid
values to achieve different sorting results.
When you select a Variety or save changes that you have made, the Color Map, Grade
Grid, and Variety settings are all loaded or saved together.

Change
Variety
Settings

Create or Change
Grade Grid Save
Select
values Variety
Variety

Change
Fruit Color
Mapping

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 11


SECTION 1 – GETTING STARTED

Key Concepts, continued

The "Active" Variety


Usually, only one Variety can be in use (or Active) at any one time. The Color Map and
Grade Grid you see on the online Variety Screen provide the criteria currently being used
to grade your produce. (The only exception to this is when "Split Vision" is in use. For
more information see "Grading More than One Variety: Split Vision" (Page 137) in
Section 4.)
You can set up new Varieties or edit existing Varieties (except for the currently Active
variety) using the Offline variety screen without affecting your current sorting.

Variety settings
You create a Fruit Variety to tell InVision which grading options and features will be used
by this particular fruit Variety. You can start creating a Fruit Variety by selecting a pre-
established standard produce type (e.g. red apple, green apple) to obtain default variety
settings. If you start your setup using the "generic" variety, all settings may need to be
specified.
Section 2 – Creating and Testing a Variety, and the Tutorials in Appendix A explain
how to set up Varieties.

Grade Grid
InVision uses a Grade Grid to tell it how to sort the produce. A Grade Grid consists of:
• the Characteristics used to define how the produce will be graded (e.g. the color, the
size, the shape, etc.)
• the Grades required for the Variety (Grade A, Grade B, Grade C, Reject, etc). The
number of Grades should normally be the same as the Grades for this Variety in
Sizer.
• the Cut-off Points entered for each grade against a Characteristic, to specify what
is acceptable in that Grade for the Characteristic (e.g. Grade A must have at least
20% "Dark Red" color characteristic, and 50% "Other Red" color characteristic.)

Most of the information InVision processes is from the camera images of the produce.
InVision needs to know what your Variety "looks" like and what characteristics are
different between the various Grades for a Variety. Characteristics are grouped by
"Category" – Fruit Color; Fruit Shape, etc. (See “Set up Grade Grid Characteristics”
(Page 34) in Section 2 for more information.)
Color Maps are used to define the colors associated with a Fruit Color Characteristic.

Color Maps
Most Varieties have a diverse range of skin colors. Some colors may be considered
"good" while others may be considered "bad" (e.g. green on a green apple is "good"; but
green on a red apple may be "bad").
A Color Map allows you to group various shades of colors into a limited number of user
defined colors.
For example, when grading oranges, the different shades of orange and yellow might all
be grouped into a color Characteristic called "Orange", while various shades of green
might be grouped into a color called "Green". The fruit might then be graded on the
percentage of green color.
Color Maps are set up by clicking on one or more good examples of a color Characteristic
in the Fruit Image, and then asking InVision to "Learn" the color. Each click creates a
color "seed". See “The Click and Learn interface” following.
There are several "types" of Color Maps. The maps available to you depend upon the
model of InVision you are using. If a Color Map tab is greyed out, the mapping option is
not available e.g. InVision 5000 does not use the blemish grading tab options. See “Color
Maps tab options” (Page14) in this Section.

12 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Key Concepts, continued

The Click and Learn Interface


All the Color Maps tabs share a common interface whereby you click on a specific
location in the image to tell InVision which part of the loaded image represents a good
example of the feature you are wanting to identify – for example a fruit color, the conveyor
color, a blemish, some bad texture, etc.

Clicks
The Color Map buttons and “click cursors” change to reflect the Characteristic or feature
you are identifying, for example:

+ +
+ +
For explicit instructions on how to color map, see “Create the Color Map” (Page 37) in
Section 2. Instructions for color mapping Size, Shape, Blemish and Texture are provided
in their separate Sections.

Learn
Clicks need to be processed by clicking the Learn button. You can Learn after every
click, or after several clicks. Sometimes just one click is enough to identify a feature and
obtain the desired result in the Processed Fruit Image. At other times, several clicks may
be required.

Processed Fruit Image


The Processed Fruit Image is a reduced view of the original image, showing you exactly
what you have told InVision the piece of fruit looks like (e.g. exactly where is the apple
red, where is it green, or where is the blemish). See “Normal and Reduced Color
Views” (Page 15) for more information.)

Original Fruit Image

Processed Fruit Image

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 13


SECTION 1 – GETTING STARTED

Key Concepts, continued

Seeds
Each click creates a “Seed”. The seed count is displayed at the bottom of the screen in
the Status Bar to help you keep track of the clicks you have added.

The five pairs of numbers represent the five Color Maps tabs. (In each set of brackets, the
first number represents Color, and the second number represents IR.) In the example
above, the Fruit Color Map tab has 14 color seeds and 3 IR seeds set; the Good Skin tab
has 1 color seed set, etc. (See “The Variety and Offline Status Bar” (Page 54) in
Section 2 for more information.)
Important:
You can remove the last seed “learned” by clicking the Undo button on the Color Maps
toolbar. Repeatedly clicking Undo will also remove previous seeds set on that particular
Color Maps tab, until there are no seeds set at all (and you can start again). You must
click Learn to refresh the Processed Fruit Image after using the Undo button.

Color Maps tab options


If a tab in this area is "greyed out" then it is not available (either because your InVision
configuration doesn't support the feature, or because a pre-requisite action is required).

1 Fruit Colors tab


Used to map the ‘normal’ colors and the conveyor color (see “To Create a Basic Color
Map” (Page 39) in Section 2) and for mapping more complicated color options (see
“Color grading variations” (Page 86) in Section 4.)

2 Good Skin tab


When blemish grading, this tab is used to set the contrast adjustment so that blobs
(blemishes or defects) on produce are clearly visible to InVision. See “Mapping on the
'Good Skin' tab” (Page 165) in Section 6.

3 Blobs tab
Blobs (blemishes or defects) are mapped on this tab so that InVision can differentiate
between blemishes and normal skin. See “Mapping on the 'Blobs' tab” (Page 168) in
Section 6.

4 Blob Colors tab


Maps “what kind of defect it is” for pixels that were detected as blemish in the Blobs tab.
This tab is only available when more than one Defect color characteristic is defined, i.e.
when there are two or more "bad" colors that need to be mapped to identify different
types of blemishes. See “Mapping on the 'Blob Colors' tab” (Page 170) in Section 6.

5 Texture tab
This tab is only available if your InVision system is configured for texture grading. Texture
mapping can be useful for identifying puff and crease on oranges, and botrytis and scale
on kiwifruit. Images are texture mapped so that InVision can differentiate between "good
skin" and "bad texture". See “Section 7 - Texture Grading” (Page 192).

14 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Key Concepts, continued

Color/Infrared views button


Switches between Color and IR view. This button is only available if your InVision system
uses Infrared (IR) cameras.

InVision images – "Snapped" versus "Captured"


"Snapped" (i.e. static) images of sample produce are taken to identify the basic Fruit
Color Characteristics. These are the colors on a piece of produce that InVision will grade
on, e.g. a Royal Gala may be graded on percentages of red and yellow colors). The
conveyor color is mapped first, so that InVision can differentiate between the produce
images, and the background colors. Then the produce colors are mapped to provide a
processed view of the “Reduced” colors (see “Normal” and “Reduced” Color Views”
below).
To fine-tune the grading, "Captured" images of sample produce (as it rotates under the
camera) are used to view and edit the Color Map results and adjust the Variety’s Grade
Grid to achieve the required grading results (Grade A, Grade B, etc) for each piece of
sample produce.

"Normal" and "Reduced" Color Views


Most images have two display options.
The "Normal" view of an image is exactly as the camera has seen it. InVision then
processes the image to produce a "Reduced" view.
The “Reduced” view provides a representation of the image based on the Conveyor
color, and the Color Mapping Characteristics mapped for the Variety (e.g. Red, Green,
Blemish, etc). This is the image that is used for vision grading.
Both image representations are used extensively throughout InVision.
In the Color Maps area, the Normal image is the “Original Fruit Image” (top half of the
window) and the Reduced image is the “Processed Fruit Image” (bottom half of the
window).
In the Images and Live Video screens, both Normal and Reduced views can be
displayed and used to troubleshoot any problems that exist between the “pictured”
features of the produce, and the way that InVision interprets them based on the color
mapping and the Variety setup parameters.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 15


SECTION 1 – GETTING STARTED

Setting up and Using InVision

Setting up InVision
This flow chart describes how the Compac Technician will set up InVision for you to use.

Before shipping,
software and default
values are set up

Done by
Compac On arrival of InVision,
Technicians on-site default values
are set up

Cameras are focused


and calibrated

Varieties are set up &


Color Maps created

Done by
Compac Grade information is
Technicians entered and tested
and
Operators

Sorting commences

Using InVision
This flow chart describes how you use InVision on a daily basis.

Start InVision and perform


“Start of Day” tasks

Make changes to InVision


data, if required

Produce InVision and Sizer exchange


sorting grading information

Grading is monitored. Minor


changes are made as required

Shut down InVision

16 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Starting InVision

Note: For full Operator Start of Day procedures for both Sizer and InVision, see
Compac’s separate document "Sizer & InVision Operator Start of Day and
Troubleshooting Procedures".
InVision will usually start up automatically when the InVision computer is turned on.
Follow this procedure to start InVision manually.

1. Start the computer.


The InVision front screen should display.
If not, in the main Windows Desktop, click the InVision icon.

2. Wait while InVision runs through its initialization process.


Note that start-up messages are colored to indicate initialization status:
• Black messages indicate that start-up is progressing normally.
• Blue messages warn of problems that have been automatically corrected by
InVision.
• Red messages indicate that a failure has occurred that will need to be fixed –
contact your Compac Technician.
Important:
If a *** Suggested Improvement *** screen displays during initialization, InVision
has automatically detected that it has a less than optimal configuration, but cannot
make the improvement automatically. Please contact your Compac Technician for
assistance.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 17


SECTION 1 – GETTING STARTED

Changing Security Access Levels

Access levels are used to avoid accidental changes being made to data that can severely
impact your sorting.
You can change the access level at which InVision is running. Changing the access level
may enable or disable certain menu functions in InVision. For example, a user who has
received Compac training may have a higher access level than a standard user. Please
note that while passwords are provided here, levels are not established for the benefit of
Compac - they are for the protection of operators. Care must be taken if you are working
in the higher levels, and always remember to change the level back to a standard access
level.
Note: Packhouse managers should keep records of all the access level passwords for
their InVision users.

1. From the InVision menu, choose Change Access Level (or select CTRL-A on
the keyboard) to display the Access Control window.

2. In the Enter Password field, enter the password for the access level you require
(see "User Access Level Options" following) and then click OK.

User Access Level Options


This table describes the main extra options you gain at each access level. Every level
gets access to all the options in a lower level.
Status Bar
Level Password Extra Options
Text
Basic 0 (no password) Basic Change access level.
Minimum 1 compac BASIC Exit program.
Simple 2 cse Simple Select fruit variety but
Client cannot make any changes
to the variety.
Client 3 hal COMPAC Select fruit variety, change
grades (but not color
mapping), capture fruit.
Advanced 4 setup SPECIAL Change color mapping,
Client perform some calibrations.

18 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Exiting and Shutting Down InVision

There are three options for exiting the InVision software:


• Shut down InVision and all the InVision computers. This is the standard way to exit
and shut down InVision.
• Shut down only one InVision computer. This may be used to restart one computer,
while continuing to grade on the other computers.
• Exit the InVision software while leaving the computer on. This is required for
‘maintenance mode’ (upgrading software, restoring backups).

To exit InVision
1. In the InVision menu, select Exit from InVision.
Note: If the current access level does not allow you to exit, then the access level
window will appear. You will be able to leave the program after entering the
correct password.

2. In the Shutdown window, choose an Exit or Shutdown option for either "All
computers" or for "This computer only".

3. If a regular backup is scheduled, the Backup Wizard displays. Click Next to


perform the backup, and Close when the backup completes.

4. Exit or shut down occurs.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 19


SECTION 1 – GETTING STARTED

Main Menu, Toolbar and Status Bar

InVision menu and toolbar options provide access to the screens that are used to set up,
monitor and manage your InVision grading.
There are features common to all InVision screens.

Area Description
Main Menu. Drop down menus provide access to the InVision functions. User
access levels determine the Menu items available.
See also "Main Menu options" (Page 21).
Main Toolbar. Provides shortcut buttons to the most commonly used InVision
screens.
See also "Main Toolbar options" (Page 23).
System Status Bar. Displays InVision processing information.

See also "System Status Bar information" (Page 24).

20 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Main Menu, Toolbar and Status Bar, continued

Main Menu options

Use to:
• change your access level (see
"Changing Security Access Levels"
(Page 18) in this Section.
• view logs (see “Viewing Log Files of
InVision data” (Page 242) in Section 8.)
• print and export data from the current
screen (see “Printing InVision Data”
(Page 244) and “Exporting InVision
Data” (Page 244) in Section 8).
• exit InVision (see "Exiting and Shutting
Down InVision" (Page 19) in this
Section.

Use as an alternative way to access the Main


Toolbar (button) options.
Also provides access to the Graphs option
(see “Viewing Graphs in InVision” (Page
232) in Section 8).

Use to acknowledge and clear alarms when


in the Alarms screen (see “Working with
Alarms” (Page 233) in Section 8).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 21


SECTION 1 – GETTING STARTED

Main Menu, Toolbar and Status Bar, continued

Provides access to all Variety and Offline


variety operations.
Note that the most commonly used functions
are available as buttons or options on the
Variety and Offline variety screens.

See "About the Variety and Offline


Screens" (Page 26) in Section 2.

Provides access to a variety of calibration


windows and InVision configuration windows.
Generally used by Compac Technicians.

22 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 1 – GETTING STARTED

Main Menu, Toolbar and Status Bar, continued

Used to perform various diagnostics-related functions.

Provides access to the online help and tutorials, and


program information.
Note that pressing F1 displays help information relevant
to your current screen or window.
Important: You may need to click in a screen area (i.e.
the Color Maps area) before pressing F1 to obtain
context sensitive help.

Main Toolbar options


The Main Toolbar contains shortcut buttons to the most commonly used InVision screens.
A button will only display if your system access level allows you to perform the function.

The Status screen displays important aspects of InVision’s status that


allows users to tell if InVision is operating correctly. See “Viewing the
System Status Screen” (Page 207) in Section 8.

Opens the Variety screen, which lets you set up the grading for the
active Variety. See "About the Variety and Offline Screens" (Page
26) in Section 2.

Opens the Video screen, displaying live video images from the sorting
machine. See "Video Screen" (Page 70) in Section 3.

Opens the Alarms screen to show active alarms and to edit alarms
settings. This button flashes when an alarm has been activated. See
“Working with Alarms” (Page 233) in Section 8.

Opens the Offline variety screen, which lets you edit inactive
Varieties. See "About the Variety and Offline Screens" (Page 26) in
Section 2.

Opens the Images screen, which displays diagnostic data for captured
produce images. See “Images Screen” (Page 72) in Section 3.

Opens the Information screen, which lets you monitor information


for produce that has been graded by InVision. See “Info Screen”
(Page 72) in Section 3.

Technician access level only. Opens the Alerts screen that displays
errors and warnings.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 23


SECTION 1 – GETTING STARTED

Main Menu, Toolbar and Status Bar, continued

Technician use only. Opens the Diagnostics screen.

Technician use only. Displays all messages arriving at a selected


serial port. Used to diagnose serial communication problems.

System Status Bar information

Shows the current date and time.


Shows the current user access level.
See "Changing Security Access Levels" (Page 18).
Shows the CPU power being used for processing.
Shows RPM (machine speed), Stopped, Offline or No
Camera (if no cameras are detected).
Shows the fruit surface rotation speed (in mm per second)
or Stopped, if the conveyor is stopped.

Function key shortcuts for InVision


Function shortcut keys allow you to perform InVision actions quickly.
Key Function Detail
F1 Online help Opens context-sensitive online help for the screen.
In Colors mode (in the Variety or Offline screens)
F3 Snap images
snaps images of produce.
F10 Restore screens Refreshes the InVision windows.
Allows you to enter a new password to change
Ctrl-A Change access level
your access level.
Starts Fruit Capture, to capture images of produce
F9 Start Capture
(if Capture can be enabled at this time).
(Only available on pixel matched systems.) Allows
Swap between IR
Ctrl-C fast switching between viewing the Color and the
and Color view
IR values on an image.

24 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION 3.5 USER GUIDE

Section 2 – Creating and Testing a Basic Variety

Overview
This Section describes the Variety and Offline screen features in detail and
provides a summary of steps for creating a simple Variety, Color Map and Grade
Grid. The Toolbar options and the Status Bar are explained at the end of this
Section.
Read this Section and complete the Tutorials in Appendix A to obtain an
understanding of the basic InVision functionality.

In this Section
Page
About the Variety and Offline Screens ............................................................. 26
Steps Required to Set Up a Variety in InVision ................................................ 30
Create the Variety ............................................................................................. 31
Set up Grade Grid Characteristics ................................................................... 34
Create the Color Map ....................................................................................... 37
Set up Grade Grid Grades and Values ............................................................ 43
Test and Fine Tune the Variety ........................................................................ 49
The Variety and Offline Screen Toolbar Options.............................................. 51
The Variety and Offline Status Bar ................................................................... 54

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 25


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

About the Variety and Offline Screens

The Variety or Offline variety screens are used to create, test and modify Varieties.
The Variety screen displays whenever InVision is started. The Variety details displayed
on this screen are always for the Active Variety. This is the Fruit Variety that is controlling
the current InVision sorting.
The Offline option is selected to set up new Varieties or make changes to existing
Varieties (except for the Active Variety) without impacting the current sorting.
Both screens enable you to set up and change Fruit Variety information if your access
level allows it.
This topic explains:
 The Variety and Offline screen features
 When to use the Variety screen versus the Offline screen
 The differences between Colors and Grades mode
 Making a Variety Active

The Variety and Offline screen features

Color Maps tabs Color Maps toolbar

Original Fruit Image


Categories and
Cut-off Point settings
Characteristics
3
4

GRADE GRID COLOR MAPS

Processed Fruit Image

Fruit Capture List


5
FRUIT CAPTURE GRID

Variety and Offline screen area Color Maps area


Toolbar Fruit Capture Grid area
Grade Grid area Grading Status Bar

26 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screens, continued

This table explains the screen features in more detail.

Area Description
Variety and Offline screen area. All information within this area is used to
create test and change Varieties.
Variety and Offline variety toolbar. Provides quick access to the most
commonly used Variety set up functions.
For more information see "The Variety and Offline Screen Toolbar Options"
(Page 51) in this Section.
Grade Grid area. Can only be edited if the Grades toolbar option is selected.
Displays the Variety’s:
• Categories and Characteristics
• Grades (e.g. A. Grade, B. Grade, etc.)
• Cut-off Points for selected Characteristics for each grade.
This is the information that determines the rules for each grade.
Color Maps area. Can be edited if the Colors toolbar option is selected.
Used to select colors for Characteristics and view the results of the current
mapping against snapped or captured images.
Contains:
• Color Maps tabs and Color/IR button
There are five Color Maps potentially available. These enable mapping of
produce images for Fruit Colors, Good Skin, Blobs, Blob Colors and
Texture. In the screen example above, Fruit Colors is selected.
If infrared cameras are in use, the Color/IR button works as a "toggle", to
show and work with infrared images.
Note that InVision 5000 systems only use the Fruit Color map, and may also
have the Color/IR option.
See “Color Maps tab options” (Page 14) in Section 1.
• Color Map Editor Toolbar. Provides all the tools required to select colors
from the Original Fruit Image for mapping to the Processed Fruit Image.
See also "Color Maps toolbar options" in this Section.
Fruit Capture Grid area.
Contains:
• Captured Fruit Toolbar. Used to work with the Captured Fruit List (e.g. to
start captures of images of single pieces of produce for testing purposes, to
load an image, to display its grading result in the Grade Grid, etc).
• Fruit Capture List. Displays a list of produce images captured for grading
set up and fine-tuning purposes. Each list item contains a series of images of
a single piece of produce rotating under the InVision camera(s). Grading
results for each piece of produce are displayed. When a new Capture is
started, the current list is overwritten.
Grading Status Bar. Shows the Variety name and color map information.
For more information see "The Variety and Offline Status Bar" (Page 54) in
this Section.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 27


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screens, continued

When to use the Variety screen versus the Offline screen

The two screen options - Variety and Offline - provide similar functionality, and display
similar screens. The Offline screen has a blue background to make it easier to tell the
difference at a glance.

Variety screen (White Cell Background) Offline screen (Blue Cell Background)

Variety screen
The Variety screen shows the "Active" (or online) Variety. If your sorter is running
produce, these are the settings that are controlling the vision grading.
Any changes in this screen will change the way the produce is currently graded when you
press the Apply Changes button.

Offline screen
The Offline variety screen displays the same information as the Variety screen, however
the Grade Grid is colored blue. You can load any Variety (apart from the one currently in
use in the Variety screen) into the offline editor in order to review and modify that variety.
Changes will be saved when the Save Changes button is pressed, and will affect the
grading only when this Variety becomes the current active variety (by loading it into the
online editor, i.e. the Variety screen).

Testing changes in the editors


Any changes made in both editors do not take into effect until the Apply Changes or
Save Changes button is pressed. You can safely experiment with changes and see the
effect of these changes on captured produce by clicking the Regrade button. If you don’t
like the results, you can either try more changes until you are happy, or click the Discard
button to revert to the last saved (or applied) state.

Offline screen limitation


There is only one limitation in the Offline screen. To test changes to Fruit Brightness
(Iris) settings by running Captures, your Variety will need to be Active in the Variety
screen. For more information see "Using Captured Images to Refine Grading" (Page
109) in Section 4.

28 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screens, continued

The differences between Colors and Grades mode

There are two modes used when working with Varieties:



Grades mode is used to work with the Grade Grid, to adjust grade cut-off points etc.
This should be the main working mode for everyday use.
• Colors mode is used for editing the Color Maps.
Both the Variety and Offline variety screens display the Colors and Grades toolbar
options.
When either button is clicked, the screen layout changes slightly and some functions are
enabled or disabled, for example:

in Colors mode you can perform full color mapping, and edit Categories and
Characteristics, however you cannot edit the Grade Grid. In Colors mode, if you try
to add new Grades, you are switched automatically to Grades mode (if your user
access allows it).
• in Grades mode you can edit the Grade Grid Cut-Off points, edit Categories and
Characteristics and add new Grades. However, you cannot edit Color Maps.
The two modes are a safety feature to prevent accidental update of Variety data (e.g. to
prevent users unintentionally adding a color seed to a color map while in Grades mode).
If an operation you are attempting does not seem to work, check the mode selected.
If a button or toolbar item is greyed out, you either have the wrong mode selected to
perform the operation, or your access rights do not permit it.
(See also "Changing Security Access Levels" (Page 18) in Section 1.)

Making a Variety "Active"


InVision Varieties can be made "Active" in two ways.
If the Sizer and InVision Varieties are linked (by having the Sizer Variety ID assigned to
an InVision Variety in the Fruit Variety Information window) then when a batch is
changed in Sizer, InVision will automatically change to the correct Variety.
If the Sizer Variety ID is not assigned to an InVision Variety, the InVision Variety needs to
be manually selected (using Select Variety from the Variety screen). If the Variety is
currently selected in the Offline screen, and all changes have been saved, you can use
the Swap button to make the Offline variety active in the Online screen.

Note:
While Variety IDs must be identical between InVision and Sizer for automated batch
change, the Variety names do not need to be exactly the same (although having them the
same is good practice).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 29


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Steps Required to Set Up a Variety in InVision

This diagram shows the suggested steps to set up, test and fine-tune a Variety in
InVision.
The steps are repeated as necessary. Once a Variety has been created, Grade Grid and
Color Map set up and editing is performed, completing the steps in any order appropriate
to the user.

Identify the type of produce.


Create the Identify the grading requirements e.g. color, size,
Variety shape (and blemish, texture, if available.)
Set up the Variety name and attributes.

Set up Set up the initial Fruit Color Category


Grade Grid Characteristics in the Grade Grid.
Character- Add further Categories and Characteristics as
istics required.

Create Snap images of sample fruit.


the Color Identify the conveyor color in the Color Map.
Identify the fruit colors against the Grade Grid
Map(s)
Characteristics. Add Characteristics as required.

Set up
Grade Grid Add and name Grades. Capture images of
Grades and sample fruit. Set up the Cut-off Point values
against the grading Characteristics.
Values

Test and Review grading results. Capture more images.


Fine Tune If necessary, adjust the Grade Grid and the Color
the Grading Map.

RUN VARIETY Monitor grading results and make adjustments to


and GRADE the Variety as necessary.
PRODUCE

30 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Variety

You will need to set up a Fruit Variety for every variety of produce that needs vision
grading on your sorter.
Note that you can copy and modify a Variety if the new Variety has similar attributes to an
existing one.
This topic explains how:
 To create a new Variety
 To change a Variety's set up information
 To delete a Variety or recover a deleted Variety

Note: The steps in these procedures are described in more detail in Tutorials 1 and 2 in
Appendix A.

To create a new Variety

Before you begin


Before creating a new Variety, consider the Variety type you are setting up (Royal Gala
Apple, Green Kiwifruit, White Potato, etc) and the grading requirements for the Variety
(color, size, shape, size, or any other requirements).
These requirements are based on the type of produce you are sorting, and on the client’s
expectations for the produce (e.g. Grade A must have a consistent color, size and shape).

Create a new Variety


1. Open either the Variety or Offline Variety screen.
Warning: Working in the Variety screen will affect your current sorting.

2. Click New Variety.

3. The Fruit Variety window displays.

Select either:
• Create new fruit variety (to create a new Variety and select all the
parameters), or
• Create new fruit variety based on existing one (to copy an existing Variety,
give it a new name, and change the parameters, if necessary).
(Note that Select an existing fruit variety will load an existing Variety; it will not
create a new one.)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 31


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Variety, continued

4. Click Next to open the Fruit Variety Information window.

5. Enter the Variety Name, and select the Variety options appropriate for your
produce type.
(See "Fruit Variety Information window options" (Page 59) in Section 3.)

6. Click Finish if you are sure you want to save the changes. Changes are
automatically applied to the Variety (i.e. you cannot discard these changes).

To change a Variety's set up information


Warning: If you are currently running InVision grading, changes to the Active variety in
the Variety screen will be applied immediately. Your grading will be affected.

In the Offline or Variety screen, click Edit Variety.

Make changes as required in the Fruit Variety Information window. (See Page 59 in
Section 3).

Note: When is clicked, changes are applied immediately (i.e. you cannot
discard these changes).

To delete a Variety or recover a deleted Variety


These functions can only be performed if your user access level allows it.
See "Changing Security Access Levels" (Page 18) in Section 1.
InVision Varieties are actually "hidden" rather than "deleted". Hiding unused Varieties
reduces the number of varieties displayed for selection purposes. All "deleted" Varieties
can be recovered and redisplayed at any time.

Delete a Variety
From the Variety menu, select Delete Fruit Variety to display the Select Fruit Variety
window. Select one or more varieties to be deleted, and click Finish.

32 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Variety, continued

Recover a deleted Variety


From the Select Fruit Variety window, check the Include Deleted Fruit Varieties check-
box. Locate and highlight the deleted Variety (deleted Varieties are colored red) and click
Finish.
The deleted Variety is recovered and selected as the Active variety.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 33


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Characteristics

A Characteristic defines the property of the produce you are grading (for example a
percentage of red color; or the elongation of a fruit). At a minimum a Variety will require
two Fruit Color characteristics to enable grading. Characteristics are grouped by
Category.
This topic explains:
 About Categories and Characteristics
 To add Categories
 To add Characteristics
 To rename a Characteristic
 To delete a Category or Characteristic

Note: The steps in these procedures are described in more detail in Tutorials 1 and 2.

About Categories and Characteristics


After creating a new Variety, one default Category (called Fruit Color) with one
Characteristic (called "Color 1") displays on the left in the Grade Grid area.

As you are setting up (or changing) a Variety’s grading requirements, additional


Categories and Characteristics will need to be set up to define the criteria you want to
grade on.

Characteristics
Characteristics can be set to grade on many produce properties, such as "good" colors or
"bad" colors, fruit shapes (elongation, flatness, symmetry, etc) and special characteristics
such as fruit that touch during imaging, or onions that have loose skin or thick elongated
stems.
In general, a typical Grade Grid will only require two to three Fruit Color Characteristics to
sort effectively.
Once set up, characteristics are used to define your grades. Values are set up in the
Grade Grid against a Characteristic to tell InVision what range or value of the
characteristic is acceptable in a Grade (e.g. a percentage of red color; an area of white
color, the degree of symmetry of the fruit). The measurement criteria (%, area, etc) is set
in the Mode column.
Mode options are explained in more detail in “About Modes” (Page 44) in “Set up Grade
Grid Grades and Values” in this Section.

Categories
Categories are only used to group Characteristics in a meaningful way. For more
information on all the Categories available, see "Select Category (and Characteristics)
window options" (Page 91) in Section 4.

34 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Characteristics, continued

To add Categories
1. Create or select the Variety in the appropriate screen (e.g. Variety or Offline).
Warning: Working in the Variety screen will affect your current sorting.

2. Click the Add Category button.

3. Select the required options from the Select Category window.


See also "Select Category (and Characteristics) window options" (Page 91) in
Section 4.

4. Select the Mode value for calculating the Grade Grid Cut-off Points (e.g. %, Area
etc).
See also “About Modes” (Page 44) in “Set up Grade Grid Grades and Values”
in this Section.

5. Save Changes or Apply Changes.

To add Characteristics
1. Create or select the Variety in the appropriate screen (e.g. Variety or Offline).
Warning: Working in the Variety screen will affect your current sorting.

2. • Click the appropriate "Add" button for the Characteristic (e.g. Add Fruit Color,
or Add Shape). Example:

3. Select the required options from the Characteristics window.


See also "Select Category (and Characteristics) window options" (Page 91) in
Section 4.

4. Select the Mode value for calculating the Grade Grid Cut-off Points (e.g. %, Area
etc).

See also “About Modes” (Page 44) in “Set up Grade Grid Grades and Values”
in this Section.

5. Save Changes or Apply Changes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 35


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Characteristics, continued

To rename a Characteristic
Some Characteristics (e.g. Fruit Color) can be renamed. Left-click on the Characteristic
(or use the keyboard arrows to move to the Characteristics) and type a new name.

To delete a Category or Characteristic


Right-click on the Characteristic to be removed and select Delete from the menu.
A Category is automatically deleted when its last Characteristic is removed.

36 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map

Every Variety needs a Fruit Color Map set up to define the color characteristics being
graded on.
This topic explains:
 Color Mapping terminology
 How to select your produce samples
 Some tips for selecting fruit colors
 About the Fruit Color Characteristics
 To create a basic Color Map.

Color Mapping terminology


The following definitions explain the most important concepts you need to understand to
create and test a Color Map.

Term Explanation
Color Maps A Color Map groups different shades of colors into small sets of colors
that are defined by the user, such as conveyor color (every thing that is
not produce), “good red”, “too green” and so on.
Conveyor The conveyor color in a Color Map is used to identify everything in the
Color image that is not produce.
Fruit Color A Fruit Color Characteristic is the collection of shades that the user
Characteristics wants to be grouped together and graded on. For instance “dark
green”. The shades don’t need to be of the same color in any sense.
For example, if brown and red colors are equally bad for green apples,
you may have a “brown or red” color. (See “About the Fruit Color
Characteristics” (Page 39) in this Section.
Color Seeds For each Fruit Color Characteristic, you must identify at least one color
"seed". Color seeds are examples given to the vision software to
identify the different colors. The seeds are created by clicking on points
in the picture to tell InVision which color they belong to. The result of
what InVision "Learns" from these seeds is shown in the Processed
Fruit Image.
When you record a color seed, it is taken as a sample of the color at
the exact spot (i.e. pixel) where you clicked (e.g. Red).
However, it is not until Learn is clicked, that the one or more color
seeds recorded are processed by InVision. InVision evaluates how the
new color samples (e.g. for Red) relate to any other color
Characteristics (e.g. Green) and updates the Processed Fruit Image to
show the new separation of colors. (See also “The Click and Learn
Interface” (Page 13) in Section 1.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 37


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map, continued

Term Explanation
Snapped InVision takes images of fruit in two ways.
Images
and
• Snapped Images
Captured One image of one or more fruit taken when an InVision user
Images presses the "Snap" button in the Colors toolbar. This image is
displayed in the Color Maps area until another snapped image
supersedes it.

• Captured Images
The sequence of images of a single piece of fruit taken as it travels
down the sorter and under the cameras. Captured image data is
shown in the Fruit Capture Grid at the bottom of the Variety or
Offline screen. To view a piece of captured fruit, click on it and it
displays in the Color Maps area.

There are two views of the images - “Normal” and Reduced” (see
Page 15).

Note: The Images screen provides an advanced view of captured


images.

How to select your produce samples


You will require samples of the Variety you are setting up. You will need to analyze your
produce samples to decide what grade each sample piece should achieve. You will also
need to consider the criteria that will achieve this grade (e.g. a Grade A red apple should
be at least 90% red, but no more than 5% yellow).
Images of these samples will be "snapped" and used to teach InVision which colors will
be used to grade the Variety. Consider both the "good" colors and "bad" colors that may
be present on the Variety (e.g. Red and Yellow or Red and Green) and how the
combination of colors may affect the Grade that a single piece of produce should achieve.

"Good" produce and "bad" produce


Sample produce should show a wide range of the colors. Select both very "good" produce
and very "bad" produce, and very "dark" fruit through very "light" produce. You want to
have produce that includes poor color so that you can tell InVision how to identify this
color.

Marking boundaries
To help identify boundaries between different colored regions on a piece of produce, you
can mark the boundaries with a pen. Since the colors might appear different on screen,
this will help achieve the color definitions you want in your images (see picture below).

38 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map, continued

Some tips for selecting Fruit Colors


You might like to try and follow these general guidelines.
• Map your Conveyor color first, and then map your Fruit Colors.
• Click as few examples of a color as possible to begin with - one example is often
enough to get a good result.
• Make sure the tip of the “eye dropper" on the Fruit or Conveyor cursor is over the
pixel you want to click on. This is shown inside the blue circle below.

• Click Learn after selecting a color to see the result of the selection. (With experience,
you may wish to do multiple clicks before "learning".)
• Try to click obvious examples of colors, and stay away from borderline colors. The
more you can do this, the better defined the borders between colors will be.
• Try to find color examples to click on that are in the center of the images. (InVision
makes most of its color measurements in the center of the produce images where the
lighting is the most consistent. This area is called the "band".)
• Notice the RGB values displayed on the status bar at the bottom right of the screen.
Alternatively choose "Select color with details" from the Info button on the Color
Maps toolbar to show RGB values on your Fruit Color cursor.
These values change as you move from pixel to pixel in the image, and can help you
decide where to click to select color seeds.

About the Fruit Color Characteristics


Add Fruit Color from the Add Category button or the Add Fruit Color button provides three
options:

Create a new color


A new Variety provides one Fruit Color Characteristic by default. You must have at least
one Fruit Color to perform vision mapping. To grade on more than one color (e.g. "good"
red, and "bad" green), select this option. See “3. Add Fruit Color Characteristics and
Grades” (Page 251) in Tutorial 1 for step by step instructions.

Create a combination of two existing colors


For more complex grading requirements, you can combine colors in Grade Grids, for
example if you need to grade on shades of a certain color (e.g. light red, red, dark red)
and on the color as a whole (e.g. any red color). See “Grading on Color Combinations”
(Page 126) in Section 4.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 39


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map, continued

Show the conveyor color


Adding the conveyor color as a Fruit Color Characteristic allows grading on a specified
amount of very dark marks without using blemish grading. This is explained in more
detail in “Select Category (and Characteristic window options” (Page 91) in Section 4.
For step by step instructions, see “Example 2: Combining "bad" colors with
Conveyor” (Page 127) in Section 4.

To create a basic Color Map


Note: The steps in this basic procedure are demonstrated fully in Tutorials 1 and 2 in
Appendix A. “Section 4 – Advanced Grading – Concepts and Grading Options”
(Page 85) explains the various color mapping options in greater detail.

Before you begin


Obtain representative samples of "good" and "bad" produce. See "How to select your
produce samples" (Page 38) in this Section.

Create a Fruit Color Map


1. Create or select the Variety in the appropriate screen (e.g. Variety or Offline).
Warning: Working in the Variety screen will affect your current sorting.

2. Ensure that Colors mode is selected.

3. Place a sample of the produce under the cameras on the stationary sorter and
then Snap the image.

Note: You can adjust the image brightness level by selecting Edit Variety and
choosing a different Brightness option before re-snapping the image.

4. If necessary, add more Fruit Color Characteristics and name the colors.

5. For the Conveyor color, and for each Fruit Color Characteristic, use the cursors to
click on at least one example of the color and click Learn. (Ensure the point of
the “paint dropper” cursor is on the pixel you are selecting.)

40 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map, continued

6. Review the results of the color mapping in the Processed Fruit Image in the bottom
half of the Color Maps area.

Add more Fruit and Conveyor color seeds until you are satisfied with the mapping:

Refine Fruit
color
Review mapping
Grading LEARN
results colors
Refine
Conveyor
mapping

7. Click the Edge button to check that the images show accurate Edge definitions.

Note: The Edge drop-down menu options are:


• Fruit Edges - Display the border between fruit and conveyor (as InVision sees
them)
• Current Edges – Display the borders of the currently selected color (e.g. red
pixels that have a neighboring pixel that is green or yellow or conveyor)
• All Edges – Display the border between any 2 colors.

Edit your Conveyor and Fruit Colors until the Edges are clearly defined.
Important: You must define Edges accurately when doing any dimension or
shape grading.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 41


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Create the Color Map, continued

8. If necessary, snap more images of sample produce and repeat Steps 4 through 8
until the Color Map and Fruit Color Characteristics provide a good definition of the
colors you are wanting to grade on.

9. Save Changes or Apply Changes.

42 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values

The Grade Grid relates a Variety’s Characteristics (e.g. Fruit Colors) to its Grades, using
the grade Cut-off Points.
When produce is run over the sorter, a grade is determined for each piece of produce,
and the information is sent by InVision to the Sizer software. This links the vision grading
with weight grading and enables Sizer to grade and deliver the produce to the correct
outlet (for packing, discarding, etc).
You will need to use the Grades mode (not the Colors mode) to edit the Grade Grid Cut-
off Points.
This topic explains:
 The number of Grades required
 About Grades and Characteristics
 About Modes
 About Cut-off Points
 About Grade title colors
 To set up a Grade Grid
 To add Grades to a Grade Grid

The number of Grades required


An InVision Variety should have no more Grades than are set up for the Variety in the
Sizer software. While it is good practice to do so, the names do not have to be the same.

About Grades and Characteristics


Not all Characteristics set up in a Variety may need to be graded on.
For example, when you are setting up color grading, you can choose to grade on the
amount of "good" color on the produce (e.g. Red), or on the amount of "bad" color on the
produce (e.g. Green). When a Characteristic is identified, but not given a grading value in
the Grade Grid (i.e. the default values are grey), it indicates that the characteristic is not
being used to grade on.

Most grading values are set as numeric ranges (cut-off points), although some "Special"
grades use on/off checkboxes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 43


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values, continued

About Modes
The Mode set against a Characteristic tells InVision how to compute the Cut-off Point
values set for the Characteristic across the Grade Grid.
The Modes available for Fruit Color Characteristics are described here. (Other modes
are also available for other characteristic types (e.g. Defect Colors have additional
Defect Modes.)

Mode Description
% This is the most commonly used mode for color grading. The percentage of
skin area covered by each color is calculated. Grading is done by comparing
the percentages of each color with those required for each grade.
Area This mode will show the area (in mm2) of the produce covered by a particular
color. Fruit is graded on the area of allowable color in each grade. This mode
is useful for for identifying certain very distinct bad colors (e.g. tears or cuts
that expose white-colored flesh, or bird lime on produce)
Per Used for grading where very small amounts of color are significant. This
10k mode is the same as the % calculation mode, except that the numbers are
100 times larger.This enables very small percentage values to be entered
(e.g. a value of 55 in this mode is identical to a value of 0.55% in % mode.
Block Used to distinguish between colors that are located in one place on a fruit
count (e.g. to grade out concentrations of sunburn color, where the same color
being present in small quantities all over the skin area may be acceptable).

In this example picture, the % of color is the same on


both fruit. The color on the first fruit is acceptable, but
the concentration on the second is not.

Ignore The function of the Ignore mode depends on the type of characteristic you
are using it with.
For Fruit Color characteristics:
• The Ignore mode is used to ignore labels on fruit. Any image with this color
in the band will be ignored for color, blemish and texture grading. The
image is still used for shape grading. See '”Grading using 'Ignore' Fruit
Color Mode (for fruit with labels)" (Page 128) in Section 4.
For blemish grading (against Defect Color characteristics):
• Ignore is used to indicate that a mark is not a defect (InVision 7000 and
9000 systems only). See “Section 6 – Blemish (or Blob) Grading” (Page
162).

44 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values, continued

About Cut-off Points


Cut-off points are set as value ranges or numbers. The "Mode" selected against a
Characteristic determines the method of measure. (See “About Modes” (Page 44) in this
Section.)
In the Grade Grid example below:
The Fruit Color cut-off points are "from" and "to" percentage (%) ranges set for each
Grade against the color to be graded on.

In this example, a fruit with up to 5% "Green" is Export grade. A fruit with over 30%
"Green" is Juice grade.

When grade cut-off point values are set and produce is being run, InVision evaluates the
grades from left to right across the Grade Grid. Therefore Grade A is always checked
first to see if the fruit data is correct for that grade. If it is not, the next grade to the right is
checked (e.g. Grade B), and so on until a match is found. InVision always assigns a fruit
or vegetable to the left-most grade that matches the measurements made for it.

You will notice that the last Grade (i.e. D. Juice) does not have values specified. Produce
will be assigned to that Grade by default if no grading values match for an earlier grade.
Note: With two exceptions, it is very important that the last grade has no values. This
enables produce that does not match an earlier grade will still have an appropriate grade
assigned.
The two exceptions to this rule are:
• If you are using the “Special” category grading characteristics (Doubles, etc) the last
grade may be the special grade, and the empty grade (with no values defined) is the
one before the specials grade.
• In “Tomato mode” (e.g. using standard fruit type “Tomatoes” and grading only on
function) all the grade cut-off values are specified, with the minimum value of each
grade being set to the maximum value of the grade before it.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 45


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values, continued

When you first set up your Grade Grid, your cut-off point values are estimations. You will
need to test your Grade Grid on sample produce, and adjust the ranges as part of testing.
You can also adjust them while your sorting machine is sorting produce, if you find that
the grading is not providing the best results for you.
For more detailed information see "Guidelines for Grading" (Page 96) in Section 4.

About Grade title colors

The Blue/Green (Aqua) Grade title headings shown in the Grade Grid example above
may also be colored:
• Grey (to indicate a disabled grade – which means that no fruit is allowed to receive
Grade A)

• Red (to indicate there is no default grade – which means that some produce might
not match any grade, and InVision will have to find the “best match)

• Yellow (which means there are "unused" grades in the Grade Grid, i.e. the grade
values currently set will not allow produce to be assigned to the grades showing in
yellow because an earlier grade is empty)

Hover over a colored title to display its tool-tip.


For more detailed information on troubleshooting using the Grade title colors, see "Grade
Title Colorization" (Page 98) in Section 4.

46 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values, continued

To set up a Grade Grid


Note: The steps in this procedure are described in more detail in Tutorial 1 (Page 247)
and Tutorial 2 (Page 273).

Before you begin


Before creating (or editing) a Grade Grid at a minimum you should have:
• created the Variety
• created an initial color map from snapped images
• ensured sample are fruit available for each of your grades to test your grading.

Set up a Grade Grid


1. Create or select the Variety in the appropriate screen (e.g. Variety or Offline).
Warning: Working in the Variety screen will affect your current sorting.

2. Ensure that Grades mode is selected.

3. In the Grades Grid area, click Add Grade and specify the number of grades to
add, and their position on the Grade Grid.

See “To add Grades to a Grade Grid” below.

4. Rename the Grades.


Tip: Tab to the Grade title and type the new name.
Remember that InVision grades from left to right across the grade grid. Usually the
left most grade is the "best" (e.g. Export) and the right-most grade is the "worst"
(e.g. Reject or Juice).

5. If necessary, select the Mode for grading (%, Area, etc) for each Characteristic.
(Mode defaults appropriately for the Characteristic type selected, but can be
changed (e.g. Defect mapping usually requires Area mode.)
See “About Modes” (Page 44) in “Set up Grade Grid Grades and Values” in this
Section.

6. Set your Grade Grid Cut-off Points or values for the Characteristics you will grade
on, e.g. what percentage of "Green" is allowed in each of the Grades for a Red
Apple Variety?
See "Guidelines for Grading" (Page 96) in Section 4.

7. Press F9 (or Start Capture).

Run your sample fruit over the sorter.


Captured images are displayed in the Fruit Capture Grid.
See "Using Captured Images to Refine Grading" (Page 109) in Section 4.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 47


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Set up Grade Grid Grades and Values, continued

8. Adjust the Cut-off Points according to the grading values displayed against each
fruit Capture in the Fruit Capture Grid, then click Regrade Fruit and review the
grading results for the Captured images.

Repeat this step until your sample fruit is being assigned to the appropriate Grade.

9. Save Changes or Apply Changes.

To add Grades to a Grade Grid


1. In the Grades Grid area, click Add Grade.

2. In the Add Grade window, select the number of grades to add, specify whether the
grade(s) are to be inserted either Before or After a nominated Grade, and then
select the Grade for the insertion point (e.g. Add 3 Grades After Grade A).

3. Click OK.

Need more help?


To disable or delete Grades, see “The Grade Grid Right-click Menu” (Page 94) in
Section 4.
For more information on Grade mapping, see “Set up Grade Grid Characteristics”
(Page 34) in this Section.
For more information on the Grade Grid, see “Set up Grade Grid Grades and Values”
(Page 43) in this Section.

48 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Test and Fine Tune the Variety

Once you have created a Color Map, set up Grades and Cut-off Points for a Variety, and
performed some initial testing, you need to test the Variety thoroughly before it is used for
processing.
Testing may result in further Color Map or Grade Grid adjustments being required.
Seasonal changes to fruit you are sorting may also require you to adjust your Variety
settings.

To test and fine tune your Variety


Note: The steps in this procedure are described in more detail in Tutorial 2 in Appendix
A.

1. Obtain a further selection of fruit for testing (or capture fruit during normal sorting).
For more information about capturing, see "Using Captured Images to Refine
Grading" (Page 109) in Section 4.

2. Press F9 (or Start Capture).

Run a selection of fruit on the conveyor. Make sure the pieces of fruit are at least
1-2 meters apart on the conveyor if you want to examine results for specific fruit.

3. Click on any of the images in the Captured Fruit List.


The image displays in the Color Maps area. Check that the whole of the fruit can
be seen in each image in the sequence displayed.
If not, click Edge and adjust the mapping to redefine the fruit edges.

Note: You can also use the Images screen to view edges on all the captured fruit.
You can then right-click on any image and select "Show this fruit in Variety
window" to edit its Color Map.

4. You can also use the View Skin, Skins view to check your color mapping.

Colors inside the skin must be accurately mapped in the Processed Fruit Image
(in the bottom half of the screen). If not, correct your color mapping. (Note that
color mapping outside of the skin can sometimes be slightly incorrect without the
grading results being affected.)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 49


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

Test and Fine Tune the Variety, continued

5. Check the Grade result and the Major and Minor Diameter measurements in the
Captured Fruit List.

• If the fruit images are graded correctly for color, check that the measurements
displayed in each row of data make sense for the fruit images captured. Check
the overall grade assigned to the fruit.
Make adjustments to the grading criteria (Characteristics, Cut-off Points, etc) as
necessary.

• If measurements do not appear at all, or the sequence of images is bad (e.g.


bad images or only a few of them), click the Video button.

Check that video images are being received, and that the fruit centers
coincide with the centers of all the fruit or their carriers. If video images are not
being received, or are not correctly aligned, check the fruit limits in the Fruit
Settings screen, or contact your local Compac Technician.

50 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screen Toolbar Options

Toolbars and menu options give access to all the InVision functions. Right-click menus
and buttons, (e.g. Add Category, Add Fruit Color in Categories and Characteristics) also
provide shortcuts to many setup functions.
This topic covers:
 Variety and Offline screen toolbar options
 Color Maps toolbar options

Variety and Offline screen toolbar options

When you select either Variety or Offline variety from the Main toolbar, the following
toolbar options display:

The toolbar buttons provide the following functionality.


Button Description
Enables Colors mode for creating or changing the Color Maps.
Note: When Colors is selected, some Grades features are disabled.
A colors toolbar is used to create Color Maps. See "The Color Maps
toolbar options" below.
Enables Grades mode for creating or changing the Grade Grid.
Note: When Grades is selected, most Color Map features are
disabled.

Loads the selected Variety onto the screen. In the online Variety
screen, it also makes the new variety "Active" so that sorting is
performed using that Variety’s grading parameters.
(If Sizer software is determining the Active Variety, this selection may
be overridden.)
Creates a new Variety, including a new Color Map and Grade Grid. In
the online Variety screen, also makes the variety "Active" so that
sorting is performed using that Variety’s grading parameters.

Allows you to edit the set up values for the currently selected Variety.
In the Variety screen, this is the currently Active Variety.

Adds new grades to the Grade Grid.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 51


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screen Toolbar Options, continued

Button Description
In the Offline screen, saves changes to the current
Variety.
In the online Variety screen, also applies the
changes to the active Variety to make the changes
Offline screen Variety screen effective immediately.
Discards all changes that have been made (but not Applied or Saved)
and reverts to the last saved settings.

Swaps the Offline Variety and the Online Variety. A pop-up window
asks you to confirm the swap and warns that any changes made but
not saved will be lost.

Color Maps toolbar options


This toolbar displays to the right of the Color Maps area. You need to be in the Colors
mode to use most of these button functions.
Note that the Fruit and Conveyor buttons change to other button names when alternate
Color Maps tabs are selected - see “Color Maps tab options” (Page 14).

Button Description
Every camera takes a picture of whatever is placed beneath it. If
there are many cameras, a dialog box pops up asking you to select
the lanes to use. The combined image then displays in the Color
Maps area.
Enables fruit color selection for a Fruit Color Characteristic.
Click here and the Fruit dropper cursor appears. The cursor displays
the name of the currently selected Characteristic. Use the tip of the
dropper to click on precise points in an image to select new color
seeds.
Enables conveyor color identification on the Color Map.
Click here and the Conveyor dropper cursor appears. Use the tip of
the dropper to click on points in the images that are not fruit.

Interprets the color seeds selected and builds the Processed Color
Map.

Changes to zoom mode. A left mouse click in the image window will
zoom in on the clicked point. A right mouse click will zoom out. The
image cursor changes to indicate this mode. From the drop-down
menu choose Zoom to Fit to fit the entire image in the window; or
Zoom 1:1 to return to non-zoom.
With each click on this button, a color seed is removed. You can
Undo until there are no more colors identified for the Color Map.
After doing as many undo operations as you want, you will need to
click the Learn button to rebuild the color map, and see the effects
of your change(s).

52 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Screen Toolbar Options, continued

Button Description
Click to apply or remove edges to the images to help you check the
color mapping.
Select the Edge option you want from the drop-down menu:
Fruit edge - Displays the edge of the fruit, that is, the boundary
between regions of conveyor color and all other fruit colors.
Current edge - Displays the edges of all regions mapped to the
color that is currently selected.
All edges - Displays the boundaries between all distinct color
regions.
Click to apply or remove pink highlighting on the image that shows
only the pixels that relate to your currently selected color. Use
Highlighting to see if your color mapping is accurate.

Click to apply or remove fruit color information on the cursor display,


including the name of a selected color and/or the Red-Green-Blue
(RGB) values for the color, if selected from the drop-down menu.

Click to switch between the normal Images view and Skins or


Bands view. (These are the same views available from the Images
screen.)
Skins view - Displays the skin created for the piece of produce from
the processing bands.
Bands view – Displays a rectangle around the area InVision uses to
calculate all the information for grading both color and blemish.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 53


SECTION 2 – CREATING AND TESTING A BASIC VARIETY

The Variety and Offline Status Bar

This status bar displays the currently selected Variety, and provides information to assist
in your Color Mapping.

or or

Field Description
Shows the selected Variety and its Sizer Variety
ID(s). In the Variety screen, this is the Active
variety.
Shows five sets of values (separated by a comma)
that indicate the number of color seeds set on each
of the 5 Color Map tabs.
For example the first set (14+3) relate to the Fruit
Colors tab; the second set (1+0) relate to the Good
Skin tab; etc.
A color seed is created by clicking on an image in
the Color Map. A color seed is associated with a
Characteristic.
When there is a pair of numbers (e.g. 14+3) the
first number (14) represents color and the second
number (3) represents IR.
If your system has synchronized color and IR
cameras then some tab positions will show one
number only.
Shows an X and Y axis value to indicate where on
the image, in the Color Map, the cursor is currently
located.
Shows the exact "RGB" (Red, Green, Blue) values
or of the pixel at the cursor’s current location in the
Color Map.
or “ir” shows the value for the specified IR channel if
IR view is selected (e.g. ir1).
(Note: On a synchronized system IR displays with
the RGB values, i.e. there will be 4 values:
RGBIR.)
"t" values display if you are in the Blobs tab.
Shows the Zoom value currently in use on the
Color Map.

54 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION 3.5 USER GUIDE

Section 3 – InVision Screens and Windows

Overview
This Section describes the functionality of the most commonly used InVision screens and
windows. Sub-windows that relate to specific grading functions are covered in their
related Sections.

In this Section
Page
Status Screen ................................................................................................... 56
Variety and Offline Screens .............................................................................. 57
Select Fruit Variety window options............................................................. 57
Fruit Variety Information window options..................................................... 59
Blemish Grading Parameters tab options .................................................... 64
Texture Grading Parameters tab options .................................................... 68
Video Screen .................................................................................................... 70
Alarms Screen .................................................................................................. 71
Images Screen ................................................................................................. 72
Info Screen ....................................................................................................... 72
Iris Setting Window ........................................................................................... 75
Fruit Limits Screen ............................................................................................ 82
Vision Dialog Pop-ups ...................................................................................... 83

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 55


SECTION 3 – INVISION SCREENS AND WINDOWS

Status Screen

Click the Status button on the toolbar, or select Status Window from the View menu, to
view the Status screen processing information and reset the status data.
For a full description of how to use this screen to monitor and troubleshoot your InVision
grading, see “Viewing the System Status Screen” (Page 207) in Section 8.

Screen

2 4

Areas
Area Description
Reset button
Clears current values from the Status screen. New values display when more produce
is run.

Status information area


Displays the Variety, current conveyor speed, and current rotation speed and
summarizes the grading results for the lane(s).

Lane selection tabs


Enables grading results to be viewed for All Lanes, or for selected lanes.
Status graphics area
Provides a visual overview of how well the sorting machine and cameras are capturing
images of produce.

56 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Variety and Offline Screens

For a full explanation of the Variety and Offline variety screen areas see “About the
Variety and Offline Screens” (Page 26) in Section 2.
For steps to create a new variety, see “Create the Variety” (Page 30) in Section 2.
The following Variety and Offline screen options are described here:
 Select Fruit variety window options
 Fruit Variety Information window options
 Blemish Grading Parameters tab options
 Texture Grading Parameters tab options

Select Fruit Variety window options

The Select Fruit Variety window displays all saved InVision Varieties. By default, they
are listed in the order of their last date of use. To sort the Varieties by any other criteria
(e.g. date, name) click on a column heading. Click again on the same column to invert the
order (sort backwards).
Note that “deleted” Varieties can also be viewed in this screen if your access level allows
it.

Window

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 57


SECTION 3 – INVISION SCREENS AND WINDOWS

Select Fruit Variety window options, continued

Fields and Checkboxes


Item Description
Fields
Fruit Variety Name This is the descriptive name given to the Variety.
ID This is the ID number assigned to the Variety in the Sizer software.
Specifying the Sizer ID enables automatic activation of a Variety after
a Sizer Batch Change.
Brightness Indicates brightness level set for the Variety.
Last Used Shows the date and time that the Variety was last used for grading.
Last Changed Shows the date and time that the Variety was last changed.
Created Shows the date and time that the Variety was created.
Checkboxes
Include Special This option allows Technicians to edit special fruit Varieties that are
Fruit Varieties set up for calibration purposes.
(This is access level dependent.)
Include Deleted This option allows Technicians and some advanced users to show
Fruit Varieties deleted Varieties in the display list and restore a Variety that was
accidentally deleted. Varieties are not permanently deleted, they are
made unavailable.
(This is access level dependent.)

58 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Variety Information window options

Warning:
Changes made in this window for the Active variety in the Variety screen will be applied
to your sorting immediately. (Changes made to a variety in the Offline screen will not
affect your current sorting.)
Note: If your system does not have separate Color and IR cameras (e.g. if you have
Color only, IR only, or are using the Color/IR pixel synchronized system) then fields on
this screen that are not required will not display. (For example, under Uniformity
calibration, there may be only one drop-down selection box.)
Also, some options in this window may not appear on your screen if the features are not
compatible with your machine configuration or grading set up (e.g. texture parameters will
only display if your machine supports texture grading).

Window

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 59


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Variety Information window options, continued

Fields
Field Description
Name The name of the Variety. It is “best practice” to give the Variety the same
name in InVision as it has in Sizer.
Sizer Fruit This is the Identification number assigned to the Variety in the Sizer
Variety Ids software. Specifying the Sizer Id enables automatic activation of a Variety
after a Sizer Batch Change. If you do not want this kind of integration, do
not provide an Id number. You can assign more than one Id number to a
Variety. This is useful when there are two or more Sizer Varieties that use
the same InVision grading criteria. Use the Add Id and Remove Id buttons
as required to associate the Identification numbers you want.
Configure Select the most appropriate Fruit Type from the drop-down list. This will
settings using pre-set all other options to appropriate values for grading this type of
standard fruit produce.
type
Color Grading Options

Fruit These are the camera setting options you can select for the varieties you
Brightness are sorting. The Fruit Brightness options are usually pre-defined by the
Technicians or by Advanced Users.
Note that changes to a Variety's Fruit Brightness settings can only be tested
by making the Variety "Active" in the Variety window prior to running
captures and reviewing the results.
Use top view You may check this box if you are grading elongated fruit (such as red
only for color delicious apples) and you want to exclude the stem / calyx area (on the side
views) from the color count.

Function Grading Options


(see also “Grading using Function Color (or Uniform Color)” (Page 117) in Section 4)
Note: This option is not available if your InVision system is configured for Texture grading.
When using Texture grading, any defaults set in this area are ignored.
Apply function In addition to counting how much area/percentage of the produce is
to first fruit covered by a certain color, you can calculate certain properties (“functions”)
color of the color, such as redness (for tomatoes) or the brightness of yellow (for
lemons).
Check this box to compute a function on areas that map into the first fruit
color, and make it available to grade on. Select the function to compute
from the function color drop-down list.
For certain even-colored produce types (e.g. tomatoes), it is best to map all
fruit colors into a single logical color, and compute a function such as
“redness” or “ripeness” on areas of that color. Checking this box enables
this grading option.
Function Select the function to be computed on areas that map into the first fruit
color (e.g. Lemon, Halvision Tomato, Brightness).
Grade by When a function is applied to the first Color Characteristic, you may choose
function value only to grade using that function value. If you do not check this box, you
only will be able to grade on both the color percentage or area, and the function
value.

60 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Variety Information window options, continued

Field Description
Uniformity Calibration
Color or This selects the type of uniformity correction to apply for this Fruit Variety.
Infrared Options are:
• Static – The calibration is done with a calibration bar.
• Dynamic – This adjusts the calibration to the actual produce running
on the machine and keeps adjusting it as the produce changes.
Dynamic options are 1D or 2D:
• 1D (Dynamic) calibrates along the conveyor (horizontally), while
• 2D (Dynamic) also compensates for changes across the conveyor
caused by the produce shape.
Note: Dynamic correction is more accurate, but it may go wrong if the fruit
/ conveyor mapping is not accurate (e.g. because of a dirty conveyor). 2D
may be needed for soft fruit detection.
Dimension Grading
(see also Section 5 – Dimension (Size and Shape) Grading)
Major diameter These two options select which InVision diameter
and measurements will be sent to the Sizer software for
Minor diameter Sizer grading.
The drop-down list is the same for both Major or
Minor diameters and any selection can be made for
either of the diameters.
(While not often required, the diameter
measurements can also be used to grade produce
by size. This is done by setting up a Fruit Size
Category in the Grade Grid and specifying diameter
cut-off point values for the Grades.)
See also “Diameter Measurement Options” (Page
143) in “Grading By Size (Diameter and Volume)”
in Section 5.

Diameter Selects the type of diameter filtering used to achieve the most accurate
filtering results. Filtering makes the edge of the produce (as seen by InVision )
smoother. With no filtering, edges can be seen as “jagged” due to pixel
size or small dirt particles on the conveyor.
See also “Diameter Filtering options” (Page 159) in “Fruit Variety
Options that affect Size and Shape Grading” in Section 5.
Double Selects the double detection algorithm to use for the produce type.
detection Options are:
• Round (used for most fruit, e.g. apples, oranges),
• Cherry (used for cherries, and perhaps for plums)
• Asymmetric (recommended for potatoes, onions and pears).
See also ‘Special’ Grades to Resolve Imaging and Positioning
Problems” (Page 152) in Section 5.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 61


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Variety Information window options, continued

Field Description
Treat split InVision will always try and fix images where two pieces of fruit are
touching as overlapping.
good When this option is checked, if InVision successfully splits touching fruit
images, it no longer counts them when calculating the degree of touching
for the fruit.
This option should generally not be selected.
See also “When to use ‘Split Touching Fruits as Good’” (Page 157) in
Section 5.
Fruit has When checked, this tells InVision the produce variety is one that has an
elongated stem obvious elongated stem that can be seen in the produce outline (e.g.
lemons, onions). InVision can calculate certain dimension and shape
measurements differently for these types of produce.
Move band Useful for gold kiwifruit only. When checked, this eliminates shadows
away from calyx close to the fruit calyx that might be identified incorrectly as defects.
Use shape Slippage is fruit not rotating, but slipping on the rollers. Slippage can be
changes to detected by the shape of the fruit not changing, or by marks on the fruit not
measure moving.
slippage • When checked, shape will be used to detect slippage.
Check the box if the fruit are not round.
• When unchecked, marks will be used to detect slippage.
Leave the box unchecked if the fruit are round.
If there are no blemish colors in the Variety, marks will not be detected and
the shape will be used for slippage regardless of what is selected here.
Brightness Checking this box improves Edge detection in Color Maps for produce
compensation varieties with a large variation in the brightness of color.
However as this may reduce the accuracy of sizing when there are
significant color changes within individual fruit, select this option only if
necessary.
Dimensions by: Check this box to select if dimension grading is done by color or by
Color or Infrared infrared imaging.
Diameter This enables you to set a percentage value for diameter adjustment. Any
correction % percentage value entered (limited to plus or minus 25%) will add or
(+/- 25%) subtract from the diameter measurement calculations for this Variety’s
produce. The default is 0, for no special adjustment.
This feature should be used only for a small correction over a calibrated
machine. (For example for a dark fruit variety where the diameters
measured by InVision are consistently smaller than the real diameters, you
might set a 5% diameter adjustment to compensate for the darkness.)
Grade Optimizer Options
(see also “Grading by Quality and Grade Optimization” (Page 130) in Section 4)
Use Grade Check this box to apply automatic grade optimization. Use the automatic
Optimizer for grade optimizer to maintain a specified distribution of fruit across a grade
grades: range.
x to y Specify the grade range. For example, maintain a 50:30:20 split in
number of fruit between grades B, C and D, with the 50% best quality fruit
eligible for these grades going to grade B, and the worst 20% going to
grade D.

62 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Variety Information window options, continued

Multiply Quality This check box provides compatibility for older versions of InVision.
value by If the box is checked, the Quality is the SUM of the score for each value
calculated against a Characteristic used for Grade Optimization (e.g. % of
red, area of dark defect, etc). Unticked is the default.
If the box is unchecked, the Quality is the AVERAGE of the calculated
values, multiplied by the number entered.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 63


SECTION 3 – INVISION SCREENS AND WINDOWS

Blemish Grading Parameters tab options


Accessed from the Blemish Grading Parameters button, this window allows you to
customize how InVision identifies blemishes and blobs for a Fruit Variety. Some values
are set by default, depending upon the fruit type selected in ‘Configure settings using
standard fruit type’ in the Fruit Variety Information window.
For more detailed information on how to set up Blemish Grading see Section 6 –
Blemish (or Blob) Grading (Page 162).

Window

Tabs
The Color and Infrared (IR) tabs provide the same fields for completion, except for the
Good Skin options.
Only tabs that are relevant to your InVision system will display.
If you have a non-pixel matched system that includes Infrared cameras, you will see
independent Color and IR tabs. In this case, you need to set the Blemish Grading
Parameters separately for the color and infrared images.

64 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Blemish Grading Parameters tab options, continued

Fields
Field Description
Stem Detection
Fruit has stem Check this box to tell InVision to find the 2 marks that are the stem and
and calyx calyx, and not consider them when counting blemishes. Used for most
produce. Not used for potatoes and some kiwifruit.
The fields following become available for completion.
Ignore Blobs Only used rarely and primarily used to ignore very long stems on apples,
Close to Stem which may be detected as defects.
Check this box if blobs within a specified distance (in pixels) from the
stem should be ignored, and enter the pixel value.
(You can view the areas identified as “close to stem”, by viewing the
image in the Images screen. Click the Blobs button and select Display
All Blobs from the right-click mouse menu. The ignored area is shown
as a rectangle around the stem and calyx.)
Note that if ‘Stems on Pointy side’ is also selected in the Blemish
Grading Parameters screen, and stem / calyx are detected on the side
view, then all the blobs in that side view are ‘close to stem’. This may be
used for grading elongated fruit such as lemons and kiwifruit.
Concave stem Check this box if stem and calyx are indented. Used for apples.
(apple) The value entered (in the box beside it) indicates how much more
tolerant blob tracking needs to be around the stem / calyx area because
of the cavity.
If the number is too low the stem may be counted twice (once as stem,
and once as defect); if it is too high, marks close to the stem may be
discounted.
Typical range: 5 - 20
Max elongation Indicates that a blob (mark) that is more elongated then this value
for Stem and cannot be stem or calyx. The elongation is the ratio of the blobs to its
Calyx length – a circle has an elongation of 1.
This value should typically be high (around 1000), so that any shaped
blob can be identified as a stem.
Used mainly for pomegranates to avoid detecting cracks as stem.
Stem Size (Pixels) Enter the minimum and maximum stem size of the stem area in pixels.
This value should typically be high (as large as the largest possible
stem), to allow any sized blob to be identified as a stem.
(For Apples and Oranges, set the Minimum value to 50 and the
Maximum value to 3000.)
Calyx size (Pixels) Enter the minimum and maximum stem size of the calyx area in pixels.
This value should typically be high (as large as the largest possible
calyx), to allow any sized blob to be identified as a calyx.
Stems on flat side Check this box if the stem is located on the flat side of the produce (used
(mandarin) for mandarins).
When there is an ambiguity in which pair of blobs are the stem and
calyx, this tells InVision to prefer the blob on the flat side of the produce
as the stem.
Stems on pointy Check this box if the stem is always located on the "sharp" or angled
side (lemon) side of the produce (lemons, kiwifruit, some apples).
If Fruit has stem and calyx is not ticked and this option is, then it tells
InVision to avoid finding blobs on side views. This allows a 9000
machine to grade as a 7000 machine (for instance to achieve more
accurate kiwifruit grading on a 9000 apple and kiwifruit sorter).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 65


SECTION 3 – INVISION SCREENS AND WINDOWS

Blemish Grading Parameters tab options, continued

Field Description
Expect Misshaped Check this box only if you are sorting produce that can have a very bad
Fruit (lowers shape (e.g. some apples) and you do not want to have the stem
overall accuracy) detected as a defect, and therefore the misshapen produce lowered in
grade.
This option is used infrequently and might lower the overall accuracy of
your grading.
Fruit with crease Stone fruit has a crease line going from the stem to the other end of the
(stone fruit) fruit. The line may be detected as a blemish because of its concavity and
this may cause good fruit to be downgraded.
When grading fruit with such a line, check this box to tell InVision that a
line is expected on the fruit and should not be counted as defect.
You can view the detected crease line in the Images screen. With the
Blobs button selected, turn on Toggle Stone fruit Crease from the right-
click mouse menu. When you click on a Crease blob line, the information
window displays the crease details.
Please contact your Compac technician or Compac Technical Support
before enabling this feature.
Grade Blob Colors by…
Area, Count, Both Select one of the following grading criteria:
Area – to set your grade map to grade Defect Colors by the total area of
each color.
Count – to set your grade map to grade Defect Colors by the total
number of blobs of each color.
Both – to grade by both total area and total number of blobs.
It is highly recommended you use Area, as Count may be less robust.
Advanced Parameters
Similarity This is the main value you need to adjust in the Blemish Grading
Threshold (%) Parameters screen.
This value controls blob tracking.
If you are seeing different blobs being identified as the same blob, this
value needs to be raised.
If you are seeing the same blob identified as two separate blobs, this
value needs to be lowered.
Recommended values are: Oranges - 95%, Mandarin - 90%, Apples -
85%.
Note: This value can be adjusted from the Blemish Strictness window.
See “Adjusting Blemish Grading Strictness During Grading” (Page
190) in Section 6.
Max distance This value determines the maximum distance, measured in pixels,
blobs merge between blobs in the same image for InVision to treat them as a single
(Pixels) blob.
If several distinct blobs are being merged together into a single blob, you
should lower this value.
If a single blob is being shown as several smaller blobs, you should raise
this value.
Before making any changes to this value, ensure the Blob / No Blob
mapping on the ‘Blobs’ tab is correct.
Typical range: 5 – 15

66 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Blemish Grading Parameters tab options, continued

Field Description
Color to IR This option is only available for ‘non-pixel matched’ systems. It
matching angle measures the maximum angle between the color and IR view of a blob
(Deg) to enable them to be classified as the same blob. It is currently used
only for Stem and Calyx.
The default value of 20o is usually correct. Please contact your Compac
technician or Compac Technical Support if you find you need to change
this value.
Min blob size If a blob has less then this number of pixels, it is assumed to be just
(Pixels) noise in the image, and it is ignored.
Fruit May Be Check this box to indicate that the produce may not rotate exactly
Slipping according to the rollers (because it is small / flat / wet) and therefore blob
tracking needs to be more tolerant.
Note that turning this option on may cause InVision to miss obvious
marks on produce. Only select this option if slipping produce is causing
significant grading problems.
Ignore Small Check this box to indicate that if a mark is very small (up to 3 times the
Isolated Blobs minimum area) and was only detected in one image then it is probably
just noise and should be ignored.
Use this option only if you are trying to detect very small and faint
blemishes.
Good Skin For Good Skin Color, options are:
• Red/Green - used red apples, potatoes and pomegranates.
• Green/Yellow - used for green apples, oranges, mandarins, lemons,
and kiwifruit.
For Good Skin Infrared, options are:
• Coarse - used for larger marks, as it is less sensitive to image noise
and bright spots (light reflections) on the produce. It is also less likely
to break a larger mark (i.e. stem on apple) into several smaller
marks. This is the recommendation for apples and most other fruit.
• Fine – used for smaller faded marks, as it is more sensitive and will
detect very slight brightness changes. This is the recommendation
for kiwifruit.
Classify blobs by If this option is selected, Defect Colors will be mapped by their T values,
color contrast instead of by their color (RGB values).
If you change this option for your variety, you will need to clear and re-
map all your Defect Colors.
This option is not often used. Please contact your Compac technician or
Compac Technical Support for advice if you would like to use it.
Use top view only Use this option if you do not want to grade on blobs detected on the side
for blemish views of fruit (InVision 9000 system only). This can be useful for kiwifruit
and lemons. While InVision will still find blobs on the side views, it will
ignore them.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 67


SECTION 3 – INVISION SCREENS AND WINDOWS

Texture Grading Parameters tab options

Window

Important:
Most of the parameters in this window are designed for new feature experimentation. You
should not need to change these parameters.
Instead, simply select the correct default version for your citrus puff and crease (Default
Citrus Presets) or kiwifruit (Kiwifruit Botrytis).
See Section 7 – Texture Grading (Page 192) for full texture grading procedures for
these two varieties.

Fields
Field Description
Modify Existing Texture Grading Parameters
Load Default From this drop-down list, select the predefined parameters (e.g. Default
Version Citrus Presets or Kiwifruit Botrytis) or choose to define your own Custom
Settings.
Grading If using Custom Settings, you may select up to three Grading Attribute
Attributes parameters.
Texture Image Specifies whether you are grading texture using Color or IR. (Do not
Type select Both because it will require very high processing.)
Advanced Parameters
Note: Fields here are defaulted to their correct values if a preset Default Version has been
selected.
Using Texture If selected (ticked), texture will classify each picture of the fruit to the
Rules for Texture appropriate texture class (crease, good, rough, etc).
Processing If not selected (unticked), each pixel in the image is classified to the
appropriate texture class (as opposed to each entire picture).
Tick this option for oranges, untick this option for kiwifruit.

68 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Texture Grading Parameters tab options, continued

Field Description
Exclude Values Texture pixels near blobs on the
Near Blobs produce should not be counted. These options are only valid if you
are not using Texture Rules.
Only Exclude Only ‘crease’ pixels near blobs
Crease Values should be ignored (count other The parameters are generally used
Near Blobs pixels near blobs). for development purposes and you
would not normally be selecting
Count Texture Only Only count pixels that belong to these options.
on First Fruit Color the first color in your color map.
Use Texture Always select this option for all texture grading.
Preprocessor Check this box to use the preprocessor to process the image before
Engine texture calculation.

Button
Save As Create more default settings. This option is for use by advanced
Technicians only.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 69


SECTION 3 – INVISION SCREENS AND WINDOWS

Video Screen

Click the Video button on the toolbar, or select Running Live Video from the View
menu, to view this screen.
When the sorter is running, the Video screen shows images of all the views from all the
cameras on the lanes controlled by this computer. On multi computer machines, go to the
appropriate computer to watch its cameras.
When the sorter is not running, the Video screen is blank.
For a description of how to use this screen go to “Viewing Live Video” (Page 228) in
Section 8.

70 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Alarms Screen

InVision constantly monitors for pre-set error conditions and can alert you when errors
occur.
By default, the Alarm screen displays only the current error conditions for Alarms that are
turned On. Select Show All to display the full list of all possible error conditions.
For more detailed information, see "Working with Alarms" (Page 233) in Section 8.

Screen

Alarm Settings and Values


Alarm Setting Alarm Value
Alarm Alarm condition.
(See "Alarm Types and their Solutions" (Page 234) in "Working with
Alarms" in Section 8.)
On Click this check box to turn an alarm on. When an alarm is on, InVision
can alert you if an error condition occurs more times than the Allowed
Rate threshold.
Allowed Rate The percentage of occurrences of this condition that are allowed before
InVision alerts you. If you set 0%, all alarms will be brought to your
attention. If you set a 100%, all alarms will be ignored.
Affected Nodes Number of InVision nodes where an alarm is displaying.
Values for Nodes
Count Number of times (since the last Alarm Clear) that this alarm has
occurred on this node.
Last Instance Date and time of the last occurrence of this alarm on this node.
Rate % Rate (% of processing time) of occurrence of this alarm.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 71


SECTION 3 – INVISION SCREENS AND WINDOWS

Images Screen

For a full description of how to use this screen to monitor and troubleshoot your InVision
grading, see “Viewing Captured Produce in the Images Screen” (Page 209) in Section
8.
Within that Section, for an explanation of the:
• viewing Modes, see “Images or Skins Viewing Mode” (Page 214) or “Normal (Full
Color) or Reduced Color Mode” (Page 215).
• different Overlay colors used on the various views of the images, see
“Size/Shape/Blemish Viewing Mode (and Color Overlays)” (Page 216).

Info Screen

The Information (Info) screen lets you review and analyze data for produce that has
been graded by InVision.
Each row of data in the grid is for a piece of produce or a carrier, with the exception of the
first few rows. These top rows display the averages and standard deviations of the
column data, plus certain other values you may choose to display.

Tab options
Data will be displayed according to the tab option selected at the bottom of the screen:
• Lanes – Shows all data from a lane, even for empty carriers.
See “Viewing Information for Graded Produce (Info Screen)” (Page 230) in
Section 8.
• Fruit lanes – Shows data only from produce detected on the lane.
• Pre-link lanes - Shows data as it was before any lane linking was applied to adjust
the values.
• Captured Fruit – Shows data for captured fruit.
• Histogram – Shows data used internally for creating histograms. Histogram data is
best viewed against Characteristics in the Variety or Offline variety screens.
See “Using the Histogram data to fine-tune cut-off point values” (Page 100) in
“Guidelines for Grading” in Section 4.

72 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Info Screen, continued

Screen

Toolbar options
Option Description
Save Saves the current data columns as a named diagnostic set that can
be selected from the Diag menu.
Diag Selects a set of data columns to display.
Group Selects a predefined group of data columns (i.e. all colors) to display.
Hide All Hides all columns from view.
Clear Clears all item values from the table.
Hide “0” Hides or displays all items with a value of zero.
Pause Stops and starts the display and runs an auto-refresh.

Screen display rows


Row Description
Mean Defines the average of all displayed values in each column.
SD Defines the standard deviation of all displayed values in each column.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 73


SECTION 3 – INVISION SCREENS AND WINDOWS

Info Screen, continued

Right-click Menu Options


Function Description
Filter Displays the filter row in the grid so that you can enter ranges (e.g.
paired integers like 60, 80) so that only fruit whose corresponding
values lie in the range will be displayed.
Functions Displays the two function rows in the grid to allow you to compute
your own functions of the data. Also displays the scale factor in use
for the data column. You may change this value. Scaling values only
affects the grid display (grading will be unaffected).
Graph Graphs the selected data columns in the Information view. To select
a column, click on its title area. You can click on one and drag the
mouse over several others to select multiple columns.
Graph by Graphs the average value of the selected data columns for all lanes
Lane on this node in the Graph view.
Graph Lane Graphs the history of all values of the selected data columns for all
History lanes on this node in the Graph view.
Calculation Adds a new column in which you can calculate values for each fruit
using the function rows.

The remaining options in the right-click menu allow you to add columns of data into the
Information window (e.g. Grade Map, Vision input data, etc.)

Printing or Exporting the Data


You can print or export the displayed data from the InVision menu (see Page 244).

74 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window

The Iris Setting window is accessed from the Set Iris option in the Calibration menu.
This screen has multiple purposes, but is predominantly used by Compac Technicians.

It shows live images from cameras (one camera, or all cameras) which are used to
set up and make adjustments to the imaging hardware (e.g. camera focusing,
alignment, lane assignment, etc).
• It stores the camera configurations for every "Brightness" setting needed to enable a
packhouse to sort different types of produce over a sorting season. (For example, a
pre-set Brightness called "Light" might store the camera settings required to capture
images of "light" colored apple varieties (such as Granny Smith), whereas a
Brightness called "Dark" might store the settings required to sort darker varieties
(such as Red Delicious and Gala).
• It stores settings required for controlling the cameras when the sorter is running,
automatically adjusting settings (e.g. changing camera gains) to compensate for
variations in lighting over time (mainly due to temperature changes).
• It provides advanced tools for developers and technicians, for analysis and camera
calibration and testing purposes.
This Section provides some conceptual information and describes the screen
functionality.
Important:
Please note that only Compac Technicians or trained Advanced Operators should make
changes to settings in this screen. Also, the physical cameras should never be adjusted,
unless under the direction of a Compac Technician.

This topic explains:


 About the Region of Interest (ROI)
 Iris Setting Window areas
 Iris Setting menu options overview
 View menu options
 Tools menu options
 The Camera setting toolbar

About the Region of Interest (ROI)


Using the Iris Setting Screen requires an understanding of the Region of Interest (ROI)
concept.

What is an ROI?

An ROI is simply a red rectangle, drawn on an image in the Iris Setting Screen, to define
a specific area within the image that you want to analyse. (By default, the red box
outlines the entire image, until a new ROI is drawn inside the image.)
An ROI can be drawn over any part of any image. Once drawn, the data displaying in all
other areas of the Iris Setting screen relates specifically (and only) to the small area you
have defined. The way the graphical data is presented depends upon on the “View” you
have selected.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 75


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Tips for drawing ROIs:


• To draw a Region of Interest, simply click the left hand mouse button anywhere on
the image, drag the red box border across the image and then release the mouse
button.
• To move the ROI on the Image, use the arrow keys.
• To resize an ROI, press SHIFT and use the arrow keys to shrink or enlarge the ROI
while keeping the top left corner of the ROI locked.
• To relocate the ROI to the middle of the image, use the Tools menu option and select
Centre ROI Horizontally or Centre ROI Vertically.
• To draw a new ROI, simply click and drag elsewhere in the image.

What are ROI’s used for?


ROI’s are used by Compac Technicians for different purposes at different times:
• During Brightness calibration, a grey object (usually a Compac Vision Iris Setting
Grey Scale chart) is used to define an ROI area which can be fully configured to
achieve the desired settings on one camera, and then “matched” to other cameras
(by selecting the same ROI on the chart under the remaining cameras and achieving
the same “view” of the produce). This ensures that the same object, viewed by
different cameras, will see the same colors and achieve consistent grading results,
irrespective of minor differences between cameras, variations in lane lighting, etc.
• During Automatic Camera Control calibration, a ROI is drawn over the Vision ACC
Calibration chart and the ACC ROI is “set” within the ACC OK Range. On InVision
9000 systems, automatic camera control (ACC) helps a camera to compensate for
changes in lighting caused by temperature, time of day and age of light tubes. When
active, ACC samples the lighting conditions every few images and continually adjusts
the camera settings towards their desired values.
• During any investigation to determine exactly “what” the camera is seeing, e.g. to
isolate and examine a very small part of a fruit to determine if the colors are showing
clear separation.

76 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Iris Setting Window areas


This screen example shows an InVision 5000 system, with all data views displayed for
one camera.

5
6
4

Note that not all data Views available in area above are necessarily visible. Views
can be turned “on” and “off” as required.
Area Description
Iris Setting menu
Menu options specific to the Iris Setting screen.
See "Iris Setting menu options overview" below (Page 79).
Camera setting toolbar
Toolbar used to set up Brightness levels and calibrate the cameras.
See “The Camera setting toolbar” (Page 81).
"Views" data display area
Camera image and statistical measurements displayed graphically for the
currently selected Region of Interest (ROI). Each view is explained below.
Image view
Displays an image from the camera or a loaded image. Used to draw an ROI
to display data against. The green line is the transition point between
incoming and outgoing cameras and is used to physically mount cameras.
The blue line is the centre of the image and is used to calibrate cameras.
Statistics view
Displays the numerical statistics for the current ROI for the selected camera.
This view is very useful for diagnosing camera and lighting problems.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 77


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Area Description
Brightness view
Displays a graphical view of the ROI average values from the Statistics view.
The average values are displayed with a wide colored line. Minimum and
maximum values from the statistics view are displayed with narrow lines.
This view is used during camera calibration and camera matching.
See also “More about the ‘Brightness’ view” below.
Profile views
Displays both vertical and horizontal profiles of the ROI.
Profiles are used by Compac Developers and Technicians for testing
purposes. Each profile is a graph of image intensity (Red, Green and Blue)
averaged one way or the other over the current ROI. For example, each point
on the horizontal profile is an average of the R, G and B values for points that
have the same horizontal position in the ROI. Each such average will come
from a vertical line across the ROI.

More about the ‘Brightness’ view


Example Brightness view:

In the example above, in the top row:


• Each wide line (Red, Green and Blue) indicates the current average (R, G, B) of the
current Region of Interest (ROI). The range is from Dark to Bright. (The aim of
camera calibration is to have the all those wide lines within the OK Range.)
• The narrow lines in each color indicate the maximum and minimum of the wider line
values over time. The minimum and maximum values are used for testing, and can
be reset.
• The black vertical lines (with the title OK) are the Brightness setting’s ‘OK Range’
This range is configured during camera calibration and it should be inside the ACC
OK Range (not as shown in the picture above).
• The light blue vertical lines (with title ACC OK RANGE) are the ‘ACC OK Range’
which indicates the range of brightness recommended for calibrations (Brightness
and ACC).
• In the bottom row there is a grey camera focus indicator. The focus range is from
Bad to Good. The numbers in the focus area are just an indicator. Good focus can
be achieved at different numbers in the range for different machines, lanes or
brightness settings. The aim is just to achieve the highest possible focus value for
the brightness level being set.

78 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Iris Setting menu options overview

Menu Item Description


InVision Used only to completely exit the InVision system.
View Used to enable or disable the various data display "Views” when setting up
cameras, or troubleshooting.
See "View menu options" below.
Tools Used to display image detail, and to set up cameras (adjust the ROI, set
the OK range, assign lanes to cameras, etc).
See “Tools menu options” below (Page 80).
Compare Used predominantly by Compac developers and for Compac factory
camera testing.
Close Closes the Iris Setting Window and returns you to the main InVision
screen.

View menu options

Most options are set as active/on (ticked) or inactive/off (not ticked).


View Option Description
Show (option) Shows or hides the Image, Brightness, Statistics and Profiles views
in the Views area.
Fast Display When off, the display is updated approximately every 1 second. When
on, the display is updated as fast as possible. Fast Display is used for
camera testing.
View Live When on (the default) the image is continuously updated. When off,
video image the last image captured is frozen and retained in the Image view.
View Image Click to display the Open dialog and load a picture from file into the
from file Image view.
Display All When on, displays pictures from all cameras controlled by this node.
Cameras When off, displays only the currently selected camera.
Note: When all cameras are displayed, all toolbar items are disabled.
This is because the data displayed in the Iris Setting window is camera
dependent.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 79


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

View Option Description


Show ACC Shows or hides a blue Region of Interest (ROI) that marks the area
ROI used by Automatic Camera Control (ACC) for the current Brightness
setting on this camera. (This is in addition to the red ROI which is
drawn using the mouse.)
Draw Shows or hides the blue (centre of image) and green
Alignment (incoming/outgoing camera transition area) lines in the Image view.
Markers

Tools menu options

Tool Option Description


Zoom Used to zoom in and out on the picture in the Images view.
Centre ROI Used to adjust the position of the Region of Interest (ROI) in the Image
(Horizontally view horizontally (to the left or right) or vertically (up or down).
or Vertically) The ROI defines a specific area in a camera's view that you are
interested in analysing and displaying data for.
Set OK range Used to move the black Brightness OK range line to the location of
the thick Green line in the Brightness view.
See “More about the ‘Brightness’ view” (Page 78) in “Iris Setting
Window areas”.
Auto set When selected, tells InVision to modify camera gains to automatically
produce RGB results (against settings saved against a specific Patch
on a specific Calibration Chart) so that the RGB results fall within a
pre-determined OK range.
When Auto set is selected, most other operations are disabled.
Auto set needs to be deselected once the OK range is achieved.

80 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Tool Option Description


Fruit Used to Add, Remove or Rename Fruit Brightness’s. There is no limit
Brightness to the number of Fruit Brightness’s that can be set up. Each Fruit
Brightness defines the settings required to correctly view produce
under the cameras (e.g. dark produce, light produce, etc.)
Reset Min Max Resets the currently stored values for the minimum and maximum
readings for the Red, Green and Blue values in the Brightness view.
New readings for minimum and maximum brightness levels are started
after a reset.
See “More about the ‘Brightness’ view” (Page 78) in “Iris Setting
Window areas”.
Record Values Stores the current Brightness setting information into a file. Used for
troubleshooting purposes only.
Save Image Saves the current picture (in the Image view) to a file. Used for
troubleshooting purposes only.
Save Profiles Saves the Vertical and Horizontal graphics views into a file. Used for
troubleshooting purposes only.
Test Mode Used for camera testing only.
White Balance Used for camera testing only.
Tests
Check All ACC All ACC ROIs for an individual camera need to be in the same region
ROIs (the position of the ACC chart). This option allows all of the camera
ACC ROIs to be checked. If differences are identified, individual
cameras can be adjusted.
This check is performed whenever ACC errors occur (e.g. ACC ROI
alarms).

The Camera setting toolbar

Area Description
Setting Used to select, add or remove a Brightness setting, and to select the
camera to calibrate against that setting.
Gain Used to modify the current camera (if the produce image is too dark or too
light) by manually adjusting the Red, Master and Blue Gains on the
currently selected camera:
• Red adjusts the Green to Red gains
• Blue adjusts the Yellow to Blue gains
• Master adjusts the brightness of all the colors.
Used also to set the Brightness’s OK Range against a specific Patch area,
and to record a Patch name for the Brightness settings.
All Used to control features that should be common to all cameras (i.e. shutter
Cameras speed and gamma).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 81


SECTION 3 – INVISION SCREENS AND WINDOWS

Iris Setting Window, continued

Area Description
ACC Used to load the current ACC Region of Interest and show it in the image
(as a blue rectangle), and to change and update the ACC ROI on ALL
cameras after having set a new ACC ROI (over a grey patch in the ACC
Chart) and after making sure that the Red, Green and Blue bars in the
Brightness view are as close as possible to the ACC OK range.

Fruit Limits Screen

The Fruit Limits screen is used to define the outer area and the centers of the carriers
that need to be “seen” to enable the largest pieces of produce over the sorter to be
analysed.
Note that it is better to have boundaries set ‘too wide’ than too small and thereby risk part
of a fruit image not being processed.
Note: Access to the Calibration menu is required to display this screen.

Screen

Note that the bottom half of the screen is blank until a picture is snapped.

Fields and Buttons


Technicians will follow these steps to set Fruit Limits against a fruit row.
Step Description and Options
1. Select Fruit From the Fruit Row drop-down menu, select the lane and lane
Row view for setting fruit limits. All views must have their boundaries
and centers set.
2. Snap Click the SNAP button to capture an image from the sorting
Pictures machine. The sorting machine should be running at normal
from Camera operating speed, with regular roller rotation.
Use the Enhancement drop-down menu to change the image
enhancement if it is difficult to see the carriers on a dark conveyor.

82 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 3 – INVISION SCREENS AND WINDOWS

Fruit Limits screen, continued

Step Description and Options


3. Set Fruit Use the Number of Visible Fruit drop-down menu to record the
Row number of visible carriers in the image.
Information Use the Image orientation drop-down menu to indicate whether
the image orientation is Normal or Upside Down. This is used for
side imaging only.
Use the Direction of fruit travel drop-down menu to indicate the
direction that the carriers are moving in – left to right; or right to left.
After dragging the magenta boundaries and acqua center lines to accurately define the
fruit limit area for the visible carriers in the image, either:
Step Description and Options
4. Save Use the Save Fruit Row button to save the settings for the Fruit
Row.
or Reset Use the Reset button to reposition the lines and start defining the
boundaries and centers again. Use this button when the current
line positions are confusing.
or Quit Select Quit from the menu to exit the screen before saving the
settings. Any changes made are discarded.

Vision Dialog Pop-ups

These dialogs require a response before the function requested can be continued.

Calibration Mode Dialog

The Sizer cannot be running while the requested calibration is being performed. Ensure
the Sizer is stopped before clicking OK (or press Cancel to exit the calibration request).

Sizer Must Be Running Dialog

Sizer must be running to perform this calibration function (e.g. when Setting Fruit Limits).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 83


SECTION 3 – INVISION SCREENS AND WINDOWS

Vision Dialog Pop-ups, continued

Set Sizer Speed and Rotation Constant Dialogs

To enable the carrier rotation speed to be calibrated (on the Master Node only) so that
InVision knows how fast the produce is rotating, the Sizer must be running at normal
operating speed.
More information on rotation speed calibration is provided in the Technician Guide.

84 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION V3.5 USER GUIDE

Section 4 – Advanced Grading - Concepts and


Grading Options

Overview
This Section contains the more complex color mapping and grading concepts
and functions for advanced users.
Before performing advanced grading you will need to understand basic color
mapping and grading set up (see Section 2 (Page 25) and the Tutorials (Page
246) in Appendix A).
While major grading options (Blemish, Dimension, Texture, etc) are explained
fully in their own Sections, other color mapping options and less frequently used
grading options, are described here.

In this Section
Page
Summary of Grading Options ........................................................................... 86
Getting Started with Advanced Grading ........................................................... 89
How InVision Grades ................................................................................... 89
Select Category (and Characteristics) window options ............................... 91
The Grade Grid Right-click Menu ................................................................ 94
Guidelines for Grading...................................................................................... 96
Setting Cut-off Point Values for Grading ..................................................... 96
Overlapping values ...................................................................................... 96
Criterion Linking ........................................................................................... 96
Grade Title Colorization ............................................................................... 98
Grading on "Good" produce color versus "Bad" produce color ................... 99
Using the Histogram data to fine-tune cut-off point values........................ 100
Avoiding Gaps between Grades ................................................................ 102
Using ‘OR’ Condition Grading ................................................................... 103
Special Advanced Features - Power Settings and Seed Editing .............. 107
Using Captured Images to Refine Grading .................................................... 109
Capturing Single Pieces of Sample Produce ............................................ 109
Understanding the Fruit Capture Grid Toolbar and Fields ........................ 110
Capturing a Random Sample of Produce Images ..................................... 112
About Viewing (and Saving) Captured Produce Images ........................... 112
Setting up Capture options ........................................................................ 113
Capturing Images Automatically for Grading Analysis .............................. 116
Advanced Color Grading Options ................................................................... 117
Grading using Function Color (or Uniform Color) ...................................... 117
Grading on Color Combinations ................................................................ 126
Grading using 'Ignore' Fruit Color Mode (for fruit with labels) ................... 128
Grading by Lanes (using Quality by Lane) ................................................ 129
Grading by Quality and Grade Optimization .............................................. 130
Grading More than One Variety: Using Split Vision .................................. 137

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 85


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Summary of Grading Options

InVision offers a variety of grading options, depending on your InVision model (see
"InVision Series and Models" (Page 8) in Section 1).
Grading option Description Availability
Color Used to make produce consistent in All InVision Color
grades based on color. models - (5000, 7000
and 9000) - e.g. 5000C
or 5000CIR.
Size and Shape Used to make produce consistent in All InVision models
(Dimension) grades based on size, shape, or other (5000, 7000 and 9000).
diameter or volume values.
Defect Used to sort produce based on the InVision models 7000
presence of surface marks and 9000 only.
(blemishes/blobs) that affect the
produce quality.
Texture Used to sort product based on the Usually InVision 9000C,
presence of creases, ridges and but other model options
coarse skin. may become available.
Special Used to detect special produce All InVision models
positioning and imaging problems (5000, 7000 and 9000).
and (doubles, touching, slippage, etc).

Lane Based Used to specify lane number(s) as part


of the grading criteria.

These options are explained in more detail in this Section, with references provided to
additional information.

Color grading variations


Color grading is always performed in the same way irrespective of the number of colors
you grade on, and whether you grade by area or percentage, or by using functions. This
table explains the various ways color Characteristics can be used to grade different
produce.
Variations Function Use
Two Color Grades by Used for produce with an underlying “background”
Percentage percentage area color, and a different “foreground” color, produce
grading covered by two with complex coloring, or produce that appears
specific colors unripe (e.g. yellow or green apples with red blush -
grade A may require 20% red; citrus fruit with
unacceptable green may be separated by allowing
a maximum of 10% green color in the export/local
market grades).
See “Tutorial 1: Create a Simple Two Color
Variety” (Page 247) in Appendix A.
Multi Color Grades produce Used for most fruit (e.g. apples with underlying
Percentage by the green-to-yellow color as they ripen, plus red
grading percentage area stripes or blush on top - Grade A may require 90%
covered by more red and less than 1% yellow, and the system
than two specific should reject any produce with over 20% yellow).
colors See “Tutorial 2: Create a More Complex 3 Color
Variety (and a Color Combination)” (Page 273)
in Appendix A.

86 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Summary of Grading Options, continued

Variations Function Use


Combined Grades by Used when a combination of colors needs to be
Color grading combining two considered for a grade (e.g. an export grade apple
colors that which must have at least 75% “Any Red” color
appear on AND at least 30% “Dark Red” color.
produce to grade See “Tutorial 2: Create a More Complex 3 Color
on their Variety (and a Color Combination)” (Page 273)
combined total in Appendix A.
Color Area Grades by using Used for produce in which small areas of color can
grading any of the above make an important difference to the grading result
color type values, (e.g. citrus fruit with torn skin — the system should
but based on the reject any fruit with over 2 square millimeters of
actual color area, the white pith color showing.)
not on a color You can see an example of Area grading in “Set
percentage up your Grade Map for Blemish Grading“(Page
176) in Section 6 - Blemish (or Blob) Grading.
Function Grades by Used for produce that tends to be even colored
Color (or average color or but has variations in shade (e.g. tomatoes ranging
Uniform shade of the from green through light red to dark red.
Color) entire piece of See “Grading using Function Color (or Uniform
grading produce Color)” (Page 117) in this Section.

Size and Shape (Dimension) grading options


Option Function Use
Size grading Grades produce InVision automatically sends dimension
by its size, based information to Sizer for size grading irrespective of
on outlines, whether or not InVision uses Fruit size for
diameters, and grading.
volumes Size grading may be used explicitly to grade
product where size must be considered in relation
to other vision criteria (e.g. a very small apple
must have very few marks, where a bigger apple
can have a greater number of marks.
See "Grading By Size (Diameter and Volume)"
(Page 141) in Section 5.
Shape Grades produce Used, for example, to separate elongated apples
grading by its physical from round ones; to reject flat kiwifruit; etc.
shape, based on See "Grading By Shape" (Page 145) in Section
outlines and 5.
diameter ratios

Special grading and Lane Based grading options


Option Function Use
Special Used to identify Used, for example, to identify two pieces of
Grading special conditions produce in one carrier, produce that are touching,
options that can prevent oversized produce, etc. Generally used to recycle
accurate imaging produce so that it can be graded correctly.
and grading See "’Special’ Grades to Resolve Imaging and
Positioning Problems" (Page 152) in Section 5.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 87


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Summary of Grading Options, continued

Option Function Use


Quality by Allows lane If produce has already been assigned a grade
Lane grading criteria to be prior to passing over the sorting machine, you can
specified in the tell InVision which lanes receive which grades,
Grade Grid. and have it sort only the ungraded fruit.
Alternatively, you can perform color and size
sorting of produce that has already had its quality
assessed.
See "Grading by Lanes (using Quality by
Lane)" (Page 129) in this Section.

Defect grading options


Option Function Use
Blemish Grades produce Used to grade produce based on the presence of
grading based on blemishes.
conspicuous (Note: In many cases defects can be identified by
areas on the normal Color grading. Try that option first.)
produce surface See Section 6 – Blemish (or Blob) grading
that detract from (Page 162).
the value of the
produce.

Texture grading options


Option Function Use
Texture Grades produce Available on some InVision systems. Used to
grading based on subtle detect puff and crease on oranges and mandarins;
appearance smooth skin versus coarse skin on oranges
changes that (mainly Valencia) and botrytis and scale on
indicate an kiwifruit.
important See Section 7 – Texture Grading (Page 192).
condition for
grading, such as
botrytis on
kiwifruit and puff
and crease on
oranges.

88 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Getting Started with Advanced Grading

This Section assumes an elementary knowledge of setting up Varieties and provides an


explanation of the more complex grading functionality and the grading outcomes that can
be achieved using the available features.
Note that Section 2 – Creating and Testing a basic Variety (Page 25), and the
Tutorials (Page 246) in Appendix A explain how to set up a simple color map and grade
grid with basic Categories and Characteristics.

This topic explains:


 How InVision Grades
 Select Category (and Characteristics) window options
 Add Characteristics window options
 The Grade Grid Right-click Menu

How InVision Grades

InVision grades produce by taking measurements and sorting the combination of


measurements into produce grades, based on cut-off point values and other criteria set
up against characteristics in the Grade Grid.
Grades are evaluated from left to right across the Grade Grid. Therefore, Grade A is
always checked first to see if the produce data is correct for that grade. If it is not, the
next grade to the right is checked (e.g. Grade B), and so on until a match is found.
Produce is always assigned to the left-most grade that matches the measurements
calculated for it.
See “Set up Grade Grid Grades and Values” (Page 43) in Section 2 for a full
explanation of all the Grade Grid components.

Grading measurements
Grading is based on three kinds of measurements:
• Continuous measurements (% or Area measurements)
These measure the amount of some property (e.g. percentage or area of color, sizes,
degree of elongation). These are calculated as decimal numbers, such as 47.3% or
12.1. Most measurements are continuous measurements.
• Discrete measurements (measurements in whole numbers, i.e. no decimal points)
These apply to counts of blobs (of a certain size or characteristic) and to lane IDs.
• Yes/No values (which apply only to “Special” grades)
Special grades override all other grading criteria (e.g. “touching" produce is either
touching or not, and it doesn't matter whether a piece of touching produce meets any
other grading criteria). See “Special grades” following.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 89


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

How InVision Grades, continued

Special grades

When grading, InVision first checks whether produce matches any of the criteria for any
characteristic set up in the "Specials" category. Special grades are most commonly used
to identify produce that has imaging problems, so that they can be assigned to a Recycle
Grade for further sorting. Special grades override any other grading criteria and when a
special grade is selected, all other grading criteria is cleared. For example, if touching fruit
are assigned to the Recycle Grade, it doesn't matter if the fruit are perfect in color and
size and should be Grade A, they will be recycled.
For more information, see "‘Special Grades’ to Resolve Imaging and Positioning
Problems” (Page 152) in Section 5.

90 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Select Category (and Characteristics) window options

Characteristics in the Grade Grid are grouped by Category.


When adding a new Characteristic for grading your produce, this window displays to allow
you to select the type of property (category) that you want to add.
Some Category options provide secondary pop-up windows to select their Characteristic
options (see the table below). Not all categories may be available, depending upon your
machine configuration.
For detailed information on how to set up Categories and Characteristics, see “Set up
Grade Grid Characteristics” (Page 34) in Section 2.

Window

10

11

12

13

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 91


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Select Category (and Characteristics) window options, continued

Category options
Category Description
Fruit color – for standard color grading
Options are:
Create a new color
• Add a new color Characteristic to your Grade Grid for color mapping, and
setting up of Grade Grid values (if grading on this color is required).
See “3. Add Fruit Color Characteristics and Grades” (Page 251) in Tutorial 1
in Appendix A.
Create a combination of two existing colors
• For more complex grading requirements, you can combine colors in Grade
Grids, for example if you need to grade on shades of a certain color (e.g. light
red, red, dark red) and on the color as a whole (e.g. any red color).
See “Grading on Color Combinations” (Page 126) in this Section.
Show the conveyor color
• This allows grading on an amount of very dark marks (without using blemish
grading).
• InVision measures colors, after a user tells the software to "Learn" a color, by
counting pixels that map to each logical color. InVision initially counts all colors,
including the conveyor color, but does not necessarily present them in its final
results. If the conveyor color is added to the Grade Grid, or combined with
other colors, then it will be counted.
For example, with only one fruit color, even if there are dark spots on the fruit
that are colored like the conveyor, these will not be counted, and the fruit will be
measured as 100% of the fruit color.
• With two or more "normal" colors in the Color Map, the conveyor color is
excluded from the fruit color total, and the total of the color percentages will add
up to 100%.
• If a combination color is created that involves a combination with the conveyor
color, then the conveyor color will be counted. The total of the individual fruit
colors will total to less than or equal to 100%.
• See “Example 2: Combining “bad” colors with Conveyor” (Page 127) in
“Grading on Color Combinations” in this Section.
Function color – for function color grading
Function color grading grades produce by the average appearance of the entire
piece of produce. Instead of counting how much area of the produce is covered by
a certain color, InVision allows you to calculate certain properties ("functions") of
the color, such as redness (for tomatoes) or the brightness of yellow (for lemons).
Standard “functions” are provided by InVision.
See “Grading using Function Color (or Uniform Color) Grading” (Page 117) in
this Section.
Defect color – undesirable marks
Grade on amount of surface defects. Available on InVision 7000 and 9000 systems
only.
See Tutorial 3 (Page 296) in Appendix A, and Section 6 – Blemish (or Blob)
Grading (Page 162).
Stem / Calyx – Navel / button size
Grade on size of stem and/or calyx marks. Available on InVision 7000 and 9000
systems only.
See “Stem / Calyx Size” (Page 182) in “Set up your Grade Map for Blemish
Grading” in Section 6.

92 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Select Category (and Characteristics) window options, continued

Category Description
Blob Distribution
Grade on the distribution of blobs (i.e. marks) spread over an area of the produce.
Available on InVision 7000 and 9000 systems only.
See Section 6 – Blemish (or Blob) Grading (Page 162).
Fruit shape – elongation, flatness, symmetry, etc.
Grade on certain shape properties of produce, and eliminate produce with
undesirable shapes.
See “Grading by Shape” (Page 145) in Section 5.
Fruit size – Diameter, volume
Grade on produce diameter, volume and certain other options.
In most cases these measurements are sent to Sizer and used there, i.e. they are
generally not used as part of the vision grading. (They will be sent to Sizer even if
you do not have a Size category set up in your grid.)
See “Grading by Size (Diameter and Volume)” (Page 141) in Section 5.
Specials – doubles, touching, oversize etc.
Using special grades, InVision can recognise images of fruit that have special
problems during imaging, such as two pieces of produce touching, or onions with
thick elongated stems or loose skin, and then assign them to a predetermined
grade.
See "‘Special’ Grades to Resolve Imaging and Positioning Problems" (Page
152) in Section 5.
Quality by lane
Grade produce based on the lane where the produce is located on the sorting
machine. Enables a lane number (or a range of lane numbers) to be entered as a
grading Characteristic. For example, produce in one lane could be assigned to
Grades A, B or C, and produce in another lane assigned to C and D. This is useful
if produce is pre-sorted. (Note that you can right click on the Lane Characteristic’s
cut-off points to add an OR condition to specify more than one Lane range for the
Grade.
See "Grading by Lanes (using Quality by Lane)” (Page 129) in this Section.
Internal properties
Grade produce based on information received from an internal quality system (e.g.
firmness testing) if installed on the inspection section of the sorter.

Texture
Grade on surface texture, if texture grading software has been added on to your
InVision system.
See Section 7 – Texture Grading (Page 192).
Quality (use optimizer formula)
Grade the produce by a general quality instead of rules on each property, for
instance allowing more (cosmetic) defects on dark red apples than on lighter ones.
See “Grading by Quality and Grade Optimization” (Page 130) in this Section.
Classified blobs, options
Allows grading on defect (blob) colors that have particular properties (e.g.
elongated marks may be Hayward lines on kiwifruit, small very dark IR marks may
be punctures, but bigger ones are probably not). Available on InVision 7000 and
9000 only.
See Section 6 – Blemish (or Blob) Grading (Page 162).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 93


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

The Grade Grid Right-click Menu

Using the Grade Grid menu


Right-click anywhere in a Grade Grid to view the Grade Functions menu. Clicking on a
color or grade criteria enables these functions for the selected criteria. If a function is
unavailable for the selected criteria, it is colored grey.
Warning:
Be aware that if you click on one cell, but then right-click on another, the function you
select will generally apply to the cell you first clicked on.

Grade Grid menu functions


Function Description
Add Grade Adds a new Grade column to the Grade Grid.
Delete Deletes selected Grade Grid items, depending upon your
cursor position.
You can delete grading values in a cell, a Characteristic row on
the grade grid, or a grade grid Grade column.
If a Category only has one Characteristic and you delete it,
then the Category row will also be deleted.
If you delete items accidentally, Discard your changes.
Clear Clears cell contents. Like Delete, it will clear grading values,
values in entire grade columns, or entire Grade Grid rows.
When a Color or Blob Color characteristic row is cleared, not
only are the grading values cleared, but also any color seed
values related to the row.
Add OR condition A function for advanced users. Adds an extra range for a grade
value to a cell, or to all grade values in an entire grade.
See “Using ‘OR’ Condition Grading” in “Guidelines for
Grading” (Page 103) in this Section.
Add New Allows you to add a new Grade Characteristic (and Category if
Characteristic necessary) to the Grade Grid. (You can also click the Add
Category button in the top left hand corner of the Grade Grid.)
Map Colors Enabled only when you click on the label cell for a function or
Function for Classified Blobs. This opens a window that lets you select
the colors to use for this function or blob class.
See "Grading using Function Color (or Uniform Color)"
(Page 117) in this Section.

94 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

The Grade Grid Right-click Menu, continued

Function Description
Classification rules Enables you to set the rules for Classified Blob grading.
(Note: Blemish grading is not available on InVision 5000
systems.) See “Classified Blobs” (Page 184) in “Set up your
Grade Map for Blemish Grading” in Section 6.
Show Histogram Enabled only against Characteristics. Displays an
accumulation-style histogram of the selected Characteristic’s
values for all produce that has been processed since the last
histogram reset.
This allows you to see at a glance the sort of value you should
set as a cut-off for the characteristic to enable a certain
percentage of the produce to be classified as a grade.
See “Using the Histogram data to fine-tune cut-off point
values” (Page 100) in “Guidelines for Grading” in this
Section.
Reset All This resets the histogram mechanism.
Histograms
Disable Allows you to disable and enable the currently selected Grade
Enable or Characteristic or Grade cell criteria (i.e. the cut-off point
values for a grade).
When a Grade is disabled, the grade title is colored grey. Use
this option to temporarily prevent produce from getting to a
grade (e.g. because you are not packing that grade today, or
for testing). Produce sorted to a disabled grade will drop to an
appropriate grade to the right of the disabled grade (usually
the next grade). This option may be helpful if you do not sell
fruit to some markets at some times.
When a Characteristic and/or its grade cut-off point values is
disabled, the Grade row or cell is colored grey. Use this option
if you have a Characteristic targeting a specific defect (e.g.
when running a batch that has this defect you will want to turn
this characteristic on, but on other batches you will want to turn
it off. When a Characteristic or its grading criteria is disabled, it
is not considered when grading the produce, so any ‘offending’
produce is considered to be OK.
Remove all criterion Right-click the mouse in any linked Cut-off Point cell in a
linking Characteristic row (linked cells are colored pink by default, or
may be custom colored) and then select this option to remove
the linking between all the grouped cells.
(Note: Cell linking is applied by holding down the Ctrl key and
then clicking the Grade Gride cut-off point cells. Releasing the
Ctrl key displays a linking dialogue box.)
See “Criterion Linking” (Page 96) in “Setting Cut-off Point
Values for Grading” in this Section.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 95


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Guidelines for Grading

InVision can grade on many produce Characteristics, but most commonly grades on
Color. Most Characteristics require Cut-off Point values set across the Grade Grid to tell
InVision how to compute the grade a piece of produce should achieve.

This topic covers:


 Setting Cut-off Point Values for Grading
 Overlapping values
 Criterion Linking
 Grade Title Colorization
 Grading on "Good" produce color versus "Bad" produce color
 Using the Histogram data to fine-tune cut-off point values
 Avoiding Gaps between Grades
 Using ‘OR’ Condition Grading
 Special Advanced Features – Power Settings and Seed Editing

Setting Cut-off Point Values for Grading


Once you have set up the Characteristics required for grading, and their grading Modes
(%, Area, Ignore, etc) you need to set up the Grades and the grade cut-off point values
for the characteristics you are grading on (e.g. percentage of color, area of blemish).
We recommend that you arrange your grades in order (left to right) from the most
commercially valuable (Grade “A”) to least commercially valuable, (often the “juice” grade
or “reject” grade). InVision will always assign the highest grade that it can to the produce,
so long as it satisfies all the criteria you specify.
Note that you do not necessarily have to set values for every characteristic in your grade
grid, nor do you have to set up cut-off points in your lowest grade column. Just set up the
minimum criteria required to grade your produce successfully.

Overlapping values
To ensure that produce achieves the most appropriate grade, when setting a Cut-off Point
value for a Characteristic for a grade we recommend that you set only one of the values
in each cell to specify the acceptable range.
For example, allow 0 to 5 percent of a color in Grade A, and 0 to 10 percent of the color
in Grade B (instead of 0 to 5 percent in A, and 5 to 10 percent in B).
For more information on overlapping values, see "Avoiding Gaps Between Grades"
(Page 102) in this Section.

Criterion Linking
Grade Grid cut-off point cells can be linked allowing a range of cut-points to be replicated
across any number of grades for an individual Characteristic. Multiple (and non-
consecutive) grade cells can be linked.
Grade cut-off points are usually linked for ease of maintenance.
For example, a lemon Variety may have several grades for different shades plus a final
grade for variegated lemons. All the ‘good’ grades will have the same cut-off point on
‘color variation’. Linking all these grades makes the Variety easier to maintain. If we need
to change the variegation on one grade then we will probably also need to change it to
the same cut-off points on all grades.
Similarly, when grading oranges to Grade 1, Grade 2, Green and Juice, you would
generally use the same cut-off points for Green in Grade 1 and Grade 2.

96 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Criterion Linking, continued

To link cells
Hold down the Ctrl key and click once in a Grade cell you want linked. Click once in each
of the other Grade cells you want linked. Grades selected for linking become grey.
Release Ctrl and respond Yes to the linking question. By default the cells become pink
(although the color can be customised).

Now any value entered into one linked Grade, is replicated across the other linked
Grade(s). Cut-off points for linked Grades cannot be individually changed.

To customize link colors


Customise your linking colors by right-clicking the mouse on a linked cell and selecting
Customise Criterion Linking Color from the menu.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 97


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Criterion Linking, continued

To remove criterion linking


Remove all the cell linking against a Characteristic by right-clicking in any one of the
linked cells and selecting Remove all criterion linking from the menu.

Grade Title Colorization


Use the color-coding on the Grade headings to troubleshoot grading setup problems.

Grey (Disabled)

Grey indicates a grade is disabled. Produce will not be sent to a disabled grade.
Use this feature to temporarily stop produce being sorted to a grade. In the example
above, Grade A is disabled to effectively ‘merge’ the first two grades (e.g. we do not
require an export grade for this batch of produce today).
Re-enable a grade by right clicking on the grey heading and selecting Enable Grade.

Red (Gaps)

Red indicates there are gaps or holes in the grading cut-off point values and some
produce will not be able to achieve a grade at all.
In the example above, produce with a bad area over 300 does not have a valid grade to
be assigned to. In this case InVision will assign the produce to the grade it thinks is most
suitable.
Note that you can have gaps in grades without the headings becoming red. See
“Avoiding Gaps between Grades” (Page 102) in this Section.

98 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grade Title Colorization, continued

Yellow (Unused grades)

Yellow indicates there are grade values set up that will never allow produce to be graded
to them.
In the example above, produce cannot reach Grade D because Grade C is already set to
the maximum cut-off values.

Grading on "Good" produce color versus "Bad" produce color


There are two ways that Color Cut-off Point values can be set:
• You can insist that the produce has at least the specified amount of a good color. For
this, always keep the top end of the allowed range fixed at its maximum value, so you
will get criteria such as 60 to 100, or 85 to 100.
• You can restrict the produce to having no more than the specified amount of a bad
color. Always keep the bottom end of the allowed range fixed at its minimum value,
so you will get criteria such as 0 to 15 or 0 to 40.

Both ways of setting up grading are valid and, in certain situations, you may have to use
both together. Grading based on bad color may be simpler because it makes all your cut
point ranges in the “0 to x percent” format. Many users find “0 to x percent” grading values
easier to understand.

Example Grade Grid


These concepts are explained in the three-color map below.

This map might be appropriate for citrus fruit where Grade:


• A must be predominantly an orange color
• B can have a small amount of yellow and green on it
• C takes everything that is too green or too yellow.

You may have to change your cut-off point values if this grading did not give the desired
separation. For example if you got fruit with too much yellow in the B grade, you might
need to reduce the yellow percentage value for Grade B to say 0.0 to 15.0 to force those
fruit into Grade C.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 99


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Using the Histogram data to fine-tune cut-off point values

Histogram data is collected in the Info screen (under the Histogram tab), but the data is
best viewed against Characteristics in the Variety or Offline variety screens.
Data is collected and retained from the time you started the InVision system or from since
the last histogram reset.
The histogram graphical view allows you to determine the percentage of produce above
or below your specified cut-off point. This enables you to estimate the percentage of
produce that meets, or does not meet, your grading criteria.
To view a histogram, right click on any Characteristic and select Show Histogram from
the menu.
To exit the Histogram window, click Variety (or any other screen option).
To understand the Histogram data, see the two examples below.

Example: IR Defect Histogram


In our histogram example below, the:
• X axis is a value of IR defect on the fruit (in whatever units are used in the grade grid)
• Y axis is % of the total of all the fruit.
Y – % of Total Fruit

X – Value (of IR Defect)

The graph shows, for every X value, the % of fruit that are below this value.
If you look at the diagram below, 85% of the fruit have less than 5 units of IR, 90% have
less than 10, and 95% have less than 20.

100 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Using the Histogram data to fine-tune cut-off point values, continued

95% - less
than 20 units
of defect

90% - less than 10


units of defect

85% - less than


5 units of defect

You can use this to estimate what percentage of produce will be in or out of grade if you
use a particular cut-point. i.e. if you set your cut point so that up to 20 units of IR are
allowed in your good grade you can expect about 5% rejects
You can also use the steepness of the graph to see how much of a change in grading %
a change to the cut-point will make. (See the yellow lines above.)
If your current cut-point is currently 10, then changing it by 5 (down to 5 or up to15) will
add or remove about 5% of the fruit.
However, if the cut-point is currently 80 then changing it by 10 (down to 70 or up to 90)
will only affect approximately 1% of the fruit.

Example: “Puncture” Characteristic Histogram


Our histogram example below shows the statistics against a Characteristic named
“Puncture” which caters for fruit that needs to be graded to our lowest grade (Grade D).

99.95 -
below 200

99.4 - below 25
99.3 - between 0 and 10

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 101


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Using the Histogram data to fine-tune cut-off point values, continued

In the graph above, 99.3% of the fruit are between 0 and 10 units, 99.4% are below 25,
and 99.95% are below 200.
This graph tells us that if the cut-point for Grade C is 0 to 150 we can expect 99.9% of our
fruit to be below that cut-point (i.e. good for Grade C or better) and less than 0.1% to have
values higher than Grade C and therefore graded to Grade D. (See yellow square above.)
It also tells us that if our Grade A cut-point is 0 to 3 and if we want a bit more fruit in
Grade A, then changing the cut point to 8 will not achieve any more A Grade fruit
because the line is flat (horizontal) up to about 10. We would need to adjust the cut-point
above 10. (See yellow circle in the example above.)

Avoiding Gaps between Grades

If you do not keep either the minimum or the maximum value fixed in your grade map, you
may not have overlapping grades. This can cause problems if you accidentally create
gaps between the grades. When you have gaps, some produce cannot be graded.
An example of a gap would be to set up the A grade to allow 0 to 5% of a characteristic,
and B grade to allow 10 to 20%. Any fruit between 5 to 10% cannot be assigned to A or
B grade.
Even if all your cut-off points between grades match up, you can still get gaps, as shown
in the example grade map below:

When you look closely at the yellow and green rows individually, they both seem correct
(i.e. there are no gaps in the Yellow row, and there are no gaps in the Green row).
However, when you look at them together, you notice that there are gaps between most
of the grades. We explain this further in the two examples below.

Example 1
Fruit 1 in the Grade Grid below is 9% yellow and 9% green.
Yellow achieves Grade A, but Green achieves Grade B.
Since fruit must pass ALL characteristics in a Grade column to achieve a grade, this piece
of fruit fails all criteria until it reaches Grade E. The fruit should probably have been a
Grade B.

Fruit 1 A Grade B Grade C Grade D Grade E Grade

Yellow 9% 0.0 to 10.0  10.0 to 20.0  20.0 to 40.0  40.0 to 80.0  0.0 to 100.0 
Green 9% 0.0 to 6.0  6.0 to 10.0  10.0 to 20.0  20.0 to 30.0  0.0 to 100.0 

102 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Avoiding Gaps between Grades, continued

Example 2
Fruit 2 in the Grade Grid below is 20% yellow and 5% green.
Yellow achieves Grade B, but Green achieves Grade A.
This piece of fruit also fails all criteria until it reaches Grade E, and should be a Grade B.

Fruit 2 A Grade B Grade C Grade D Grade E Grade

Yellow 20% 0.0 to 10.0  10.0 to 20.0  20.0 to 40.0  40.0 to 80.0  0.0 to 100.0 
Green 5% 0.0 to 6.0  6.0 to 10.0  10.0 to 20.0  20.0 to 30.0  0.0 to 100.0 

Solution:
Fix grading for both fruit by reinstating overlapping grades (see the Fruit 2 example in the
Grade Grid below):

Fruit 2 A Grade B Grade C Grade D Grade E Grade

Yellow 20% 0.0 to 10.0  0.0 to 20.0  0.0 to 40.0 0.0 to 80.0 0.0 to 100.0

Green 5% 0.0 to 6.0  0.0 to 10.0  0.0 to 20.0 0.0 to 30.0 0.0 to 100.0

Using ‘OR’ Condition Grading

The Add OR condition option is accessed from the right-click mouse menu with the
cursor positioned on a grade cell.

There are 2 types of “OR” conditions: “OR grades” and “OR criteria”.
OR grades are created by right-clicking on a Grade Title. This adds another column to
the grade. A piece of produce will achieve this grade if it satisfies all the criteria for at
least one of the columns within the grade.
OR criteria is created by adding another criterion to a criteria (a cell in the grid). A piece
of produce needs to satisfy at least one of the criteria to match the requirements for that
cell.
The example scenario below is provided only to demonstrate the difference between the
options. Grading would not normally be set up in this way.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 103


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Using ‘OR’ Condition Grading, continued

Understanding ‘OR’ grading – Scenario and Steps


Scenario:
In our packhouse, all fruit are manually pre-sorted. Grade A good fruit are placed on
either Lane 1 or Lane 4. We are confident that our sorters do not sort bad fruit into Grade
A, so no further grade testing is required on these fruit.
However, our sorters might miss some good Grade A fruit and send them to Lanes 2 or 3
mistakenly. We do not want this fruit to be downgraded.

Step 1 – Set up a Basic Grade Grid


Set up 4 Grades, 2 Colors and a Lane Category. Example:

Step 2 – Set up lane criteria in Grade A to allow more than one lane to be specified
Right click in the Grade A cell against the Lane Category, and add an “OR Condition”.
Specify that fruit from Lane 1 or Lane 4 will be Grade A by default. This is adding an “OR
criteria”. Example:

Step 3 – Add another Grade A column for grading good fruit from Lanes 2 and 3
Right click in the Grade A heading and add an “OR condition”. This is adding an “OR
grade”.
In the second Grade A column, specify the cut-off point percentage for Bad fruit before it
is downgraded to a lower grade (e.g. 0.0 to 1.0).
Because InVision grades from left to right (even when OR grades are added), while fruit
from Lanes 2 and 3 will fail the first Grade A criteria (not being from Lane 1 or 4), they can
achieve the second Grade A criteria (being less than 1% Bad). Example:

104 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Using ‘OR’ Condition Grading, continued

Step 4 – Finish setting the grading cut-off points


After adding the remaining Bad color cut-off points, simple grading is achieved and there
are now 2 ways for fruit to be graded A.
Fruit either satisfies the 1st column in Grade A (coming from Lane 1 or 4) or it satisfies the
2nd column in Grade A (coming from Lanes 2 or 3, and being less than 1% “Bad”).
Example:

Step 5 – View the results


In the Status screen, the different OR grades are reported separately, and the combined
Grade total is also provided. Example of screen layout (with no produce data):

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 105


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Using ‘OR’ Condition Grading, continued

More about “OR Grades” – the Sizer Software alternative


In the scenario example above, “OR grades” are demonstrated by the two grading
columns within Grade A.
While you can introduce OR grades to a Variety within InVision to achieve full grading
flexibility, there is an alternative. Instead, you could use separate grades to represent the
separate “OR” possibilities, and use the Sizer software on the sorting machine to direct
the different grades to the same outlet. In the example above you could set up Grade A
for Lanes 1 and 4, Grade B for less than 1% Bad, Grade C for Good and so on. Then in
the Sizer software, set Grades A and B to drop as class 1 fruit, Grade C as class 2 fruit,
etc.
However, it is not always easy or possible to introduce additional Grades into the middle
of Sizer grades when you are modifying existing Varieties, so InVision’s “OR conditions”
may remain the solution.

More about “OR Criteria” – Blob Grading by Count


In the scenario example above, this option is demonstrated by the Lane “OR” condition in
Grade A.
You can also use this option for blob grading by count.
In the example below:
• Grade A allows up to either 2 small blobs OR 1 medium blob;
• Grade B allows up to 5 small blobs and 1 medium blob OR up to 2 medium blobs and
2 small blobs.

106 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Special Advanced Features - Power Settings and Seed Editing

Note that the following two features are only available for very advanced users logged in
at the Advanced Client user setting (level 4).

Adjusting the Color ‘Power’ Settings in the Grade Grid


This feature is only recommended and available for advanced users. In most cases you
can achieve the same grading results by giving more examples (clicking more seeds)
instead of changing the Power settings.
If you are logged in at the Advanced Client user setting (level 4) the Power column is
displayed only when you are in Colors mode.

When to adjust Color Power settings


Adjusting a Color Power setting can be helpful when the boundaries between colors in a
Color Map are almost correct, but there are shades near the boundary, assigned to one
color, that you would rather assign to the other color. You can fix this by adjusting the
Color Power value.
Normally, each color has a power of 50. Raising or lowering the power for a color will
shift pixels near that color’s boundary with other colors. If a color’s power is increased, it
will gain more pixels; if it is decreased, pixels will be shifted into other colors.
For example, in the left image below, every color had a power of 50. In the right image,
the orange color had its strength increased to 75. The orange area is increased.

Because the power number for the orange color is stronger, more of the area gets
mapped to orange.
Warning:
Be aware that every boundary between any color and the color you change will be
affected.
Also, if the map has many seeds close to the boundary lines, there may be no room for
the line to move and changing power may not have any effect at all.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 107


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Special Advanced Features - Power Settings and Seed Editing,


continued

Editing the Seed Values


Warning:
This is an advanced feature that allows direct manipulation of the numerical values of the
seeds used in Color Mapping. Please do not attempt seed editing unless you have
enough training and/or experience. Even then, we recommend you do not make these
adjustments to a Color Map while it is in use for production. It is safer to make the
adjustments to a copy of the Variety in the Offline screen, where you can then review and
test the results before using the Variety for sorting.

To edit the seed values in the Color Maps tabs


Log in at the Advanced Client user setting (level 4).
From the Variety menu, select Color Map Editing, then select Tools and Edit Seeds to
display the Edit Seeds window.

The screen displays the Color Seeds for the currently selected Color Map tab (e.g. Fruit
Colors, Good Skin, Blobs, Blob Color) and for the selected color mode (Color or IR).
In this screen you can:
• change the RGB and IR values of individual seeds (see Note: below).
• delete a seed by changing it to the exact values of another seed.
• change the sort order by clicking on any of the column headings.

Note: You cannot change the Reduced to color characteristic name that a seed is
mapped to (however the background color may change depending on the values
entered). For example fields "dark red 128, 4, 55, 77" could be changed to "dark red 44,
33, 65, 2", but not to "light purple 128, 4, 55, 77".

108 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Using Captured Images to Refine Grading

In a normal production environment, InVision does not display or retain produce images.
"Capturing" (by clicking Start Capture or pressing F9) lets you retain images and display
them on your screen. You can use these images to test and fine-tune your grading.
Important notes:
• While you can capture produce images at any time, capturing uses a lot of the
computer’s resources. To prevent sorting being impacted, InVision will only capture
produce when it has spare time.
• InVision can only capture one piece of produce at a time. If capturing while grading,
InVision will randomly select the fruit for capture. If capturing on an empty machine
when you are not grading, leave a gap of about 1m (10 carriers) between the pieces
of produce.
• Fruit are captured with the camera setting as set by the Brightness Setting of the
Online Variety (not the Offline Variety) in the Fruit Variety Information window.
Therefore, if you are trying to work with captures in an Offline variety, you will need to
make sure the captures are taken with the correct Brightness Setting.
 If your Online and Offline Varieties are using different brightness settings (e.g.
Online Variety is Light, but Offline Variety is Medium), then when you press F9
to capture images, the online Variety editor will display the captures, but the
Offline editor will not. In that circumstance, the Offline editor will ignore them,
because the brightness levels are wrong and color mapping against the images
will be incorrect.
 If you manually try to load fruit images captured with wrong Brightness Settings
in either the Online or Offline Varieties (e.g. old captures), a warning message
will display (unless you are logged in at a very high access level.)

This topic explains:


 Capturing Single Pieces of Sample Produce
 Understanding the Fruit Capture Grid Toolbar and Fields
 Capturing a Random Sample of Produce Images
 About Viewing (and Saving) Captured Produce Images
 Setting up Capture options
 Capturing Images Automatically for Grading Analysis

Capturing Single Pieces of Sample Produce

1. With the sorting machine running empty, on the Fruit Capture toolbar click the
Start Capture button, or press F9 from any screen.
All previously saved images of produce are cleared.

2. Run a single piece of sample produce across the sorter and through the InVision
cabinet.
The capture displays as a line in the Fruit Capture Grid. A capture consists of
multiple images of one piece of produce as it rotates through the InVision cabinet.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 109


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Capturing Single Pieces of Sample Produce, continued

3. Wait a few seconds and run another piece of sample produce. Repeat this step as
often as necessary.
Note: The maximum number of captures that can be taken in one capture session
is usually between 10 and 15, depending upon your InVision computer's memory
resources.

4. After a capture, if the Start Capture button deselects automatically (i.e. it is no


longer "pressed in"), then the maximum number of captures has been reached.
(You can also stop the Capturing at any time by deselecting the Start Capture
button.)
To capture more images, you will need to press the Start Capture button again.
Note however that this will clear your current captures.
To permanently retain your captured images, see "How to Save and View
Captured Images" (Page 113).

Understanding the Fruit Capture Grid Toolbar and Fields


Once captured, images display in the Fruit Capture Grid. This Grid has its own toolbar.
Note that on Master nodes, the capture grids in both the Variety and Offline views can
have produce from any node in the system, as well as produce loaded from stored files
on disk. On Slave nodes, only produce from that node is typically available. Produce
from files may be loaded onto slave nodes, but only at an appropriately high access level.

Fruit Capture Grid Toolbar buttons

Button Description
Click to start capturing produce; click again to stop capturing. To
stop and immediately restart capturing, press the F9 button. Note
that any existing captures displayed in the Fruit Capture List will be
cleared (when starting, not stopping).
This button displays as pressed when the machine is capturing.
Reprocess all captured images to measure all properties and
reassign their grades. This re-grading also happens automatically
when certain other actions are performed, such as adding new
grading criteria. This allows you to check if the current grading setup
is achieving the desired grading results.
This button flashes to remind you to re-grade if the grading rules (in
the grade grid) have changed. This indicates that the grades in the
fruit capture grid might not be correct as per the current rules.
Opens the Setup Capture data screen. Allows you to set up rules for
capturing certain produce images (e.g. Grade A fruit on two lanes
only; or fruit with a certain shape or color).
See “Setting up Capture options” (Page 113) in this Section.

110 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Understanding the Fruit Capture Grid Toolbar and Fields, continued

Button Description
Loads a previously saved produce image. You can load multiple
captured sequences at a time by multi-selecting files in the File
Open window.
Note: Captured images from a different machine or software version
might sometimes not load correctly.
Saves the currently highlighted produce image to disk (file). This
button will be disabled until you click on a row of captured data to
select a piece of produce. Available in advanced user access level
and above. See “How To Save and View Captured Images” (Page
113) in this Section.
Clear the Fruit Capture Grid of all captured or loaded produce.

Set up periodic capture and save of produce image sequences to


disk. Available in advanced user access level and above. Used to
fine tune your grading. See "Capturing Images Automatically for
Grading Analysis" (Page 116) in this Section.

Fruit Capture List fields

Field Description
Computer Vision node number (if the system has several computers/nodes).
Fruit Index of the fruit (the order it was loaded to the grid).
File name Name of the file, if the image was loaded from a previous Save.
Lane Lane the piece of produce was captured on.
Grade Grade assigned to the piece of produce.
Major diameter Diameter values for the piece of produce. Present if diameter
and Minor grading is on for the Variety. See Note below.
diameter
Volume Volume value for the piece of produce. Present if volume grading is
on for the Variety. See Note below.
Characteristics Each Characteristic set up in the Grade Grid has a column in the
Fruit Capture Grid. Each capture displays the measurements
achieved against all Characteristics.

Note: The Major Diameter, Minor Diameter and Volume sizes are based on size
calibration of the correct lane at the time of capturing (stored in the capture files). That
means that if you recalibrate diameters on a lane you will see the changes for new fruit
captured but not on any old captures.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 111


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Capturing a Random Sample of Produce Images

When running the Start Capture function during production, InVision saves images of
random fruit as they pass under the camera. It does NOT capture all fruit across the
sorter. You should expect approximately one capture every ten seconds.
1. With the sorting machine running produce, click the Start Capture button (in the
Fruit Capture toolbar), or press F9.
All previously saved images of produce are cleared.

2. Captures continue until InVision reaches its maximum amount of saved images.
The capture then stops automatically.

Note: If you want to selectively capture produce with certain characteristics, see "Setting
up Capture options" (Page 113) in this Section.

About Viewing (and Saving) Captured Produce Images

You can view Captured images in the Variety or Offline screens, as well as in the Images
screen.
The Fruit Capture Grid displays your captures, and you can load any of your saved
captures. Captures are overwritten each time you run a new Capture, so save any
captures you wish to retain for future use.

Fruit Capture Grid

File Types
When saving captures to disk, InVision creates three sets of files based on the file name
you provide. The files have file extensions .cap, .seq and .bmp). If you are copying
captured images to another location, be sure to copy all of these files. However, when
loading captured files, only the .cap file is displayed for selection.
To change the capture criteria, see “Setting up Capture options” (Page 113) in this
Section.
For more information, see "How to Save and View Captured Images" following.

112 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

About Viewing (and Saving) Captured Produce Images, continued

How to Save and View Captured Images


Open the Offline or Variety screen, then use the table below to work with captures in the
Fruit Capture Grid.

To… then…
save a captured image click Save Fruit on the toolbar. In the Save As window,
to disk navigate to your fruit captures folder. Change the default file
name (*.cap) to a meaningful name for your capture (e.g.
Sunburn.cap) and click Save.
load previously saved click Load Fruit on the toolbar. In the Open window,
images to see the navigate to your fruit captures folder. Select the required
grading result .cap images and click Open. The captures display in the
Fruit Capture Grid.
Note: Existing captures in the Fruit Capture List are not
cleared when a new capture is loaded.
see the grading results look at the grading data against each fruit capture. Note:
for captured images Use Grades mode if your fruit capture table is very wide.
display a capture in the click anywhere on the capture in the Fruit Capture List. The
Color Maps and Grade Color Maps area displays the image, and the Grade Grid
Grid areas area shows the detailed grading result for the fruit. (In
Grades mode, look for the red value in the "Active Fruit"
column to see the criteria that determined the grade.)
sort the Captured Fruit click on any heading title to sort the list by that column. Click
List again to reverse the sort order. Note that the sorting does
not handle decimal points correctly.

Note: There are also advanced view functions for captured images in the Images and
Info screens.

Setting up Capture options

Use the Setup Capture option to capture only produce images that meet certain criteria.
Choosing specific images can help you identify problems with the color map or grade grid.
Note however that setting up capture criteria may result in very little or no produce being
captured if the type of produce you are looking for is very rare.
A typical use of this feature is to capture produce only from a specific grade or range of
grades during normal production. For example, if Grade B fruit were being graded to
Grade C incorrectly, you could view images of just the C grade fruit across the sorter to
help analyse the problem.
You can capture images from all lanes or from specific lanes on the sorting machine. You
can add any other criteria, such as the grade range, by pressing the Add Property
button.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 113


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Setting up Capture options, continued

1. Click the Setup Capture button to display the Capture Fruits window.

2. Click the check box for each lane you want to capture produce images on, or tick
Use lane 1 settings on all lanes to capture images across all lanes.

3. To select properties for the produce you want to capture, click the Add Property
button to display the Property List.

114 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Setting up Capture options, continued

4. The available properties are grouped by Category. Select the Category you want,
and click on the property you want to add.
The most commonly used properties are under the Grade Map option. Both Grades
and Characteristics (e.g. Colors, Shapes, etc) can be selected.

5. Specify the allowed range for the property you have selected (minimum and
maximum allowed value).
In the example below, Grade C produce only across all lanes has been selected for
capture.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 115


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Capturing Images Automatically for Grading Analysis

Use this function for capturing large random samples of produce so that Compac can
analyze and improve your machine.
The Auto Capture facility automatically and continually starts and stops the image
capture facility to capture and save fruit images to disk at random. Produce is captured
every minute or so to reduce processor load. Capturing will continue until 1000 pieces of
produce are captured, or the disk reaches its maximum for saved image data.

1. In the Fruit Capture Grid toolbar, click the Auto Capture button.
Note: This works if you are processing large amounts of produce on a reasonably
full machine (at least 10% of cups are full).
If you want to capture every fruit from a small sample when the machine is empty,
click Setup Capture, tick Save all in auto capture mode and then click Auto
Capture.

2. In the Save As window, enter the file name for the captured image set.
All previously saved images of produce are cleared.
InVision will capture images of produce until it reaches its maximum amount of
saved images. The capture will then stop automatically.
If you are sending the images to Compac for analysis, remember to send ALL the
files associated with the file name (e.g. all the .cap, .seq and .bmp files).
Note:
You can stop the capturing manually by clicking Auto Capture again.

116 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Advanced Color Grading Options

You will need to be familiar with basic color mapping principles before attempting these
more advanced color mapping options:
 Grading using Function Color (or Uniform Color)
 Grading on Color Combinations
 Grading using ‘Ignore Fruit Color Mode (for fruit with labels)

(Note: Basic color mapping is explained in Section 2 (Page 25), and in the Tutorials
(Page 246) in Appendix A.)

Grading using Function Color (or Uniform Color)

Note: Function Color grading is not available if your system is set up for Texture grading.
Function color grading allows you to grade on the overall look of the produce, not on of
the existence or amount of specific colors. Instead of counting how much area of the
produce is covered by a certain color, InVision allows you to set up and calculate certain
properties (“functions”) of the color, such as redness (for tomatoes) or the brightness of
yellow (for lemons).
Each Function assigns a piece of produce with a single number that describes the
produce in terms of this function. For instance the Brightness function will give a dark red
apple a low number and a light green apple a higher number. The Color Variation
function will give an evenly colored lemon a low number, and a lemon with yellow and
green colors a high number. Produce can be graded according to these numbers. For
instance tomatoes can be sorted into different shades, with the shade being used as a
good estimate for how long the tomato can be stored before it has to be eaten.

This topic covers:


 Advantages and Drawbacks of Function Grading
 About Primary and Secondary Functions
 Examples of Function Grading

Advantages and Drawbacks of Function Grading

Function grading may simplify the process of defining grading criteria significantly in many
cases.
If you are interested in sorting uniformly colored fruit such as tomatoes and most citrus
into several color grades, then you could do it by mapping several shades of red or
orange and then setting required %’s of each of these colors in the appropriate grades.
Or, instead, you could map all these shades into one fruit color (and maybe an extra ‘bad’
color) and grade on the quality of that color using an appropriate function.
Function grading is also more flexible and easier to adapt to changing market demands
over the season. For instance for some fruit at the beginning of the season, lighter red
colors are acceptable, but as the season progresses, darker colors are required. With
normal color grading you would need to change what colors are mapped to ‘dark red’ as
the season progresses and the market demands get tighter. With function grading, using
a ‘brightness’ function, all you will need to do is to lower the maximum brightness allowed
in your grade to require darker fruit.
In some cases, functions such as Color Variation, Color Roughness and 2nd Color
Variation may be able to find features based on the local distribution of colors that
ordinary color grading can’t see - such as telling the difference between stripe and block
color on red apples.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 117


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading using Function Color (or Uniform Color), continued

However, because function grading uses just one number (per function) to describe the
overall look of the fruit, it averages the property over the entire surface area of the fruit
and might not be as accurate as ‘normal’ color grading.

About Primary and Secondary Functions

A technical note
Function calculation can be done in two ways:
• calculating the function for every pixel (a point in the picture) and then averaging the
results to get a value for the piece of produce, or
• averaging the colors over the entire piece of produce, and then calculating the
function of the average.
The first method is more accurate mathematically, but requires more computing power. In
practice the difference between the two methods is usually below 5%. InVision allows the
use of one function calculated in the first method (called the Primary function) and
several functions calculated by the second method (called Secondary functions).

Primary function calculated on one color


The Primary function is calculated (in a very accurate way - see the technical note
above) over all the pixels that belong to the 1st color in your color map. This function is set
up in the Edit Variety window and can be used by itself or in combination with color
grading and other criteria.
To set up a Primary function, tick Apply function to first fruit color in the Edit Variety
window and select the function that you want to use. If you want to grade on the Primary
function and nothing else (often referred to as ‘Tomato mode’) also tick Grade by
function value only.

Secondary functions or colors


InVision also provides a Secondary and more flexible function grading mechanism. This
can calculate any number of functions on regions that map into any number of colors.
Note that this flexibility is achieved with some loss of accuracy in the results (i.e. Primary
function calculation is slightly more mathematically correct than Secondary).
When you need to calculate two or more functions, or calculate a function based on
two or more colors, “Secondary functions” are set up via the Add Category window.
To use a Secondary function, click Add Category and select Function color – for
function color grading (or if you already have at least one secondary function, just click
on the Add function color button) and then select the function or functions you want.
Click Next and select the colors you want this function to apply to. (You can always
change the colors a function applies to by right-clicking on the Function name and
selecting Map colors function.)

Primary functions available


The functions that can be computed as the Primary function are:
• Halvision Tomato - a function that tracks the green-red ripeness change in
tomatoes.
• Clementine - a function that tracks the green-orange ripeness change in most
orange colored citrus fruit.
• Lemon - a function that tracks the color change from dark green through green,
yellow, silver and to white for lemon grading.
• Brightness - from dark to bright.

118 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading using Function Color (or Uniform Color), continued

• Hue - a generic function that runs through a rainbow-like spectrum of colors. May be
used for green apples.

You may want to try a function for a type of produce that has similar colors to the piece
you want to grade. For example, the Lemon function might give useful results on Granny
Smith or Golden Delicious apple varieties.

Secondary functions available


All of the above functions can also be computed as a Secondary function. In addition,
the following generic functions are available as Secondary functions:
• Color Variation - may be useful for separating uniformly colored fruit from those with
many color changes (variegation).
• Color Roughness - may be useful for separating fruit with smooth color changes
from fruit with sharper color changes (e.g. blushes versus striped apples).
• 2nd Color Variation - may be useful for separating fruit with many small sharp color
changes from those with few larger changes.
• Red, Green, Blue Avg - the average values of red, green or blue.

Examples of Function Grading

These examples illustrate the steps required to grade produce using some of the Function
grading features available.

Example 1: Very simple tomato Color Function grading


In this example we grade on six different levels of redness on tomatoes, with the most
red going to Grade A and the most green going to Grade F.

1. Create a new Variety and in the Fruit Variety Information window, tick Apply
function to first color, select Halvision Tomato, and tick Grade by function
value only.

2. Add 5 more grades to the Variety.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 119


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading using Function Color (or Uniform Color), continued

3. Place sample tomatoes (including very green and very red tomatoes) inside the
camera viewing area and snap an image.
Then map all the tomato colors (including the green and the red) to the Halvision
Tomato color, and the conveyor to Conveyor color. Up to 5 or 7 color seeds
should be sufficient to achieve the color mapping.

4. Set the grading cut-off point values. The shade of the Halvision Tomato Grade
cut-point cell is an indicator of the expected color of the tomato in this Grade.

5. Note that as you change the cut-off point for one grade (either the From or To cut-
point), the next and previous grades (left and right) automatically alter their cut
points to reflect the change:

Example 2: Slightly more complex tomato Color Function grading


In this example we are grading tomatoes, which generally have green stems. When the
stem is included in the tomato color Function calculation it makes the tomato “greener”.
Different size stems will affect the value calculated differently and we might get some
inaccuracy in our grading because of the stems. It would have been better if we could
exclude the stems from the calculation.

1. With the tomato variety loaded from Example 1, untick Grade by function value
only.

2. There are now two lines in the Grade Grid.

120 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading using Function Color (or Uniform Color), continued

3. Rename Color1 to Fruit and add another Fruit Color called Stem.

4. We are no longer grading in “Tomato” mode, so the cut-off point ranges are
incorrect, and the Grade titles have turned to red. The cut-points no longer
automatically update when they are changed. Reset the cut-points for Halvision
Tomato using [0 to X] cut-point ranges (e.g. 0.0 to 12.0; 0.0 to 56.0):

5. Snap or capture some more tomato images (if necessary) and color map the
stems to the Stem color, and the red and green skin colors to Fruit. (Note that we
are still mixing all the shades of green and red into just one color.) The Primary
function is only applied to the pixels belonging to the 1st color (in this case Fruit) so
that the pixels mapped to Stem (which is also green) are ignored, giving us a more
accurate indication of the tomato ripeness.

Example 3: Grading lemons using two Functions


In this example we are sorting Lemons to different shades, ranging from green to yellow
and silver. The shade may be used to determine the timeframe required to ripen the
lemons. However variegated lemons (lemons that have part green and part yellow)
cannot be ripened correctly in this process because the yellow and green parts need
different ripening times and we wish to separate them from the other lemons.

1. Set up a lemon variety with a Primary function ‘Lemon’ but do not select Grade
by function value only.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 121


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading using Function Color (or Uniform Color), continued

2. Set up the main color as Lemon and map all the lemon shades into it (generally
requiring 5 to 10 clicks in total).

3. Click Add Color Function, and add the Secondary Color Variation function:

Apply this function to the “Lemon” function color:

4. Set up 5 grades, Grades A to D are for different shades of even colored lemons,
and Grade E is for variegated.

5. Set the cut-off point values for the Lemon Color Function, and the Color Variation
(Lemon) function:

The cut-points are set so that fruit with Color Variation > 15 are sent to Grade E
Variegated. Grades A through D are colored pink because they are linked for ease
of maintenance.
The Lemon Color Function uses [X to 200] cut-point ranges to sort the non-
variegated fruit into four color shades (e.g. 150 to 200, 100 to 200, 30 to 200, 0 to
200).

Note: This map can be combined with other properties, such as blemish grading.

122 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading using Function Color (or Uniform Color), continued

Example 4: Grading by combining Color and Function Grading


In this example we are sorting oranges by color so we can send oranges with some green
patches to degreening while sending orange and yellow oranges to markets. However
some markets do not want yellow oranges. We can use Color grading to separate the
green fruit, and Function grading to separate orange from green. (This can also be
combined with blemish, texture and other criteria for sorting if available.)
We set up our fruit variety for oranges and map the good colors (yellow and orange) into
‘Orange’ and the greens into “Green”. We then add a Secondary function ‘clementine’
The Clementine function value will be low for dark oranges and higher for yellower fruit.
(While we are using a Secondary function here, we could equally use a Primary function
and perhaps achieve slightly greater grading accuracy. However, many citrus grading
systems using Texture grading functionality do not have the Primary functions available.)

1. Set up an orange variety and use snapped or captured images to map the good
colors (yellow and orange) into Orange, and the green colors into Green.

2. Add a Blemish category:

Use images to map your Blemish color:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 123


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading using Function Color (or Uniform Color), continued

3. Add a Category and select Function color – for function color grading to add a
Secondary Function:

Select clementine:

Select the Orange function color only:

The function color is added to the Grade Grid:

124 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading using Function Color (or Uniform Color), continued

4. Set up and rename 5 Grades and set your cut-off point values against the Green
and Blemish characteristics and the clementine (Orange) function.

In this example:
• Grades A and B are for very good fruit with little green (0.0 to 10.0) and few
defects (0.0 to 25.0). The Clementine function is used to split these into orange
and yellowish fruit (Grade A is set as 0.0 to 80.0).
• Grade C is for fruit that is still not green, but can have more blemish.
• Grade D is for green fruit that is good enough for Grade C or better, so they
can go to degreening.
• Grade E is for fruit with too much blemish that can be used for Juice.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 125


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading on Color Combinations

For more complex grading requirements, you can combine colors in Grade Grids.
Color combination is the sum of the value for all the colors that are combined into the
“combination color”. You may combine any colors but it generally makes sense to
combine “good” colors together or “bad” colors together and not mix them.
Using Color Combinations requires a good knowledge of basic color mapping.

To grade on Combined Fruit Colors


Set up your Variety and your basic color map and grades.
In the Grade Grid, click Add Fruit Color and select Create a combination of two
existing colors.

In the Select characteristic window, choose the two colors you want to combine.

Set the Grade Grid Cut-off Point values for the Characteristics you are sorting on
(including the combined color), and then test and refine your grading against your
captured fruit images.
Our examples below illustrate how color combinations can be used.

Example 1: Combining “good” colors


Note: A step-by-step explanation of how to set up this grading is provided in Tutorial 2 –
Create a More Complex 3 Color Variety (and a Color Combination) (Page 273).
In this example, we want to grade apples on how red they are. If we use just one red color
we could grade on the % of the apple that is red, but we would be unable to tell the
difference between apples that are dark red and apples that are paler red. So instead we
use two red colors - a dark red and a light red.
Then, while we could try and set a requirement that a grade must have a minimum area
of dark red, if we also set a minimum area of light red, an apple with 100% dark red would
fail the requirement. This is obviously wrong, as dark red is even better than light red.
So instead, we create a combination color using the dark red and the light red. Then we
specify that the fruit needs X amount of dark red and Y amount of any red. Any red is the
combination of light and dark red.
In the example below the Grade Grid uses 3 colors, plus it has Dark Red and Light Red
combined to create a 4th row of grading criteria.
Grade A needs to be over 25% dark red and at least 70% any red, while Grade C just
needs over 65% of any red.

126 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading on Color Combinations, continued

This concept can be extended to 3 or more shades of red and combinations of all or
some of the reds to get very accurate color grading to meet the grading requirement for
some apples in some markets.
Tip: Try to minimize the number of constraints you set. As you can see in the example
above, Grade A requires at least a 70% combination of reds, so by default it can't have
more than 30% green. Therefore, green cut-points do not need to be set.

Example 2: Combining “bad” colors with Conveyor


Potatoes sometimes have green marks on them. These green marks are “bad” features
and are not allowed on the potatoes. The green marks can have very wide range of
colors from light green to very dark green (almost black). The black parts may be so dark
that they cannot be distinguished from the conveyor. To grade on them we create a good
color and a green color. However, if we map the very dark green, some parts of the
conveyor will be detected as dark green and the machine will falsely detect a green ‘ring’
around each good potato.
To avoid this we will keep the really dark part as conveyor and add the Conveyor color to
our grading. We are going to grade both Green and Conveyor on the Area value (not the
%) because the amount allowed is not dependent on the size of the potato.
Let’s assume we are allowed up to 10 mm2 of Green.
Do we set 0 to 10 on Green and 0 to 10 on Conveyor? But then a potato with 8 mm2 of
Green and 8 mm2 of very dark (conveyor) color will still be good.
Do we set it to 5 on both? But then a potato with just 6 mm2 of light green will be bad.
So instead we create a combination and set a cut point of 10 on the combination, as in
the example below:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 127


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading using 'Ignore' Fruit Color Mode (for fruit with labels)

Note that this feature is very rarely used. The example below describes a packhouse
experiencing problems with labelled fruit, however a better solution is to used
synchronized color and IR (see “Camera synchronization on CIR systems” (Page 211)
in “The Images screen components“ in Section 8).
Labels on produce images might sometimes cause grading problems. Usually you can
just map the labels to a color and not assign any cut points to this color in the grade grid.
However, when trying to detect soft spots on kiwifruit, a change in the IR brightness is an
indicator for soft spots. The labels also trigger the IR soft spots detection. To avoid
detecting stickers as soft spots, set up a new Fruit Color Characteristic (for example
called Sticker or Label) and map the color of the label to the Characteristic. Select the
Ignore Mode for the label color.
Any image with this color in the band will be ignored for color, blemish and texture
grading. The image is still used for shape grading.
The images are matched between Color and IR so that the labels detected in the color
images are excluded from grading also in the IR images.
With Synchronized CIR system the ‘soft’ color can be mapped based on both color and IR
information, so that the labels can be mapped out of it.
Currently this feature is only used to grade fruit that have labels.

To use 'Ignore' Mode to grade produce with labels


1. Set up the Color Map and Grade Grid for the Variety.

2. Add a Fruit Color Characteristic and rename it (e.g. to Sticker or Label).

3. Change its Mode to Ignore.

4. Capture images of produce with stickers.

5. In the Color Map, map the sticker color to the Sticker Characteristic. If you are
using IR, select the IR tab and map the IR fruit color only.

6. Check the captures in the Images screen, with the Edges mode selected:

128 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading using 'Ignore' Fruit Color Mode (for fruit with labels), continued

The orange outline on the image indicates the fruit with sticker images seen in
the band will be ignored for color, blemish and texture grading.
InVision matches Color to IR to ensure the image is ignored in both.

7. Test your grading against captured fruit images and refine the grading as
necessary.

Less Frequently Used Grading Options

Major grading options (Texture, Blemish, Dimension, etc) are explained in their own
Sections.
Other grading options described here are:
 Grading by lanes (using Quality by Lane)
 Grading by Quality and Grade Optimization

Grading by Lanes (using Quality by Lane)

InVision can grade produce based on the lane that the produce is located on. This option
is particularly useful for directing pre-sorted produce to specific outlets to reduce produce
handling.
Lane based grading is set up by adding a Quality by Lane category in the Grade Grid,
and then specifying which lane(s) should be assigned to each Grade.
In the example below, all fruit are manually pre-sorted. Grade A good fruit are placed on
either Lane 1 or Lane 4. We are confident that our sorters do not sort bad fruit into Grade
A, so no further grade testing is required on these fruit. (“Or condition” grading is also
shown in this example.)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 129


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading by Lanes (using Quality by Lane), continued

To set up Lane Based Grading


1. With your Variety loaded in the Variety or Offline screen, click Add Category to
display the Select Category window.

2. Select Quality by lane and click Finish.


A Lane category and characteristic is added to your Grade Grid.

3. For each Grade, select the lane number (or lane number range). You can enter
OR conditions to specify more than one range.

Grading by Quality and Grade Optimization

Sometimes we can grade produce based on a total “score” instead of using individual
properties with cut-off point values. This is grading by quality using scale factors.
This simplifies adjusting the grade cut points, because once we set the quality rules
(scale factors) there is just one number to adjust for each grade. However this might not
work with the strict grade standards required in some markets.
Quality grading allows for rules that are more lenient where produce with a good score in
one aspect will tolerate more bad features than produce with a lower score.
For example, instead of specifying that a Grade A apple must have no more than 10%
green; at least 30% dark red; and no more than 20 mm of blemish, we can give the fruit a
good point for every % of dark red, and a bad point for every % of green and for every
mm of blemish. We then sum all the points. Therefore, a good red apple with very few
defects might achieve a score of 80 points, while a paler apple with more blemishes might
only score 50 points. We can now say that a Grade A apple must score above 60 points.

InVision provides two different but related quality grading tools to achieve this:
 Quality Grading (manually setting scoring requirements for each grade)
 Grade Optimization (setting required %’s for each grade and letting InVision
automatically adjust the cut-off points to achieve the required %)
These options are explained in detail below.

Note: The Quality measure can also be combined with other rules (for example to grade
on Quality, but also to allow no more than 3mm of IR defect (puncture) in Grade A).

Quality Grading

Quality Grading is set up by placing scale factors against your important grading
characteristics and then defining the percentage total counts that must be achieved
before a grade can be assigned.

130 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Quality Grading, continued

Example scenario
In this example, we wish to grade fruit according to their overall appeal. On nice red fruit
we will accept more blemishes, while paler greener fruit will tolerate less blemishes.
To achieve this, Red - our good color is given a scale factor of +20; and Blemish – our
bad color is given a scale factor of -50. Sampling captures of good and bad produce
determines that produce must have a total calculated count above 40% to achieve Grade
A.
Deciding on the scale factors is the hardest part of Quality Grading. Good features on the
fruit (such as “red” in this example) are given a positive factor, bad features are given
negative factors (Characteristic “bad” in the example). The magnitude (size) of the
number determines the (relative) importance of the property. In our case bad is 2.5 times
more important than red. After setting initial factors you can capture produce and check if
the quality values match your assessment. If not you can modify the factors. If light
colored fruit achieve a higher quality grade than you would like, and lightly blemished
achieve a lower quality grade, then you might want to increase the red scale factor.

Example procedure
These steps illustrate how you would set up our example grading:

1. Select the Variety you want to add quality grading to.


Notice the current rows and columns in the Grade Map.

2. Click Add Category, and add the Quality Category to your Grade Grid.

3. Notice that the Scale Factor column and the Quality Characteristic row are
added.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 131


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Quality Grading, continued

4. Enter some initial Scale Factors against your most important Characteristics in
your Grade Grid. In our example example red is very good, so we factor it by
+20, Defect (bad) is very bad so we factor it -50.

The scale factor you set controls how good or bad a characteristic is for your
produce. A negative scale indicates a bad feature and a positive scale indicates a
good feature. 0 indicates neutral – i.e. the property is not good and is not bad.
The higher the number the more important this feature is (i.e. -10 is as twice as
bad as -5).

5. Run captures or load captured images and review your Quality grading results in
the Fruit Capture List and in the Grade Grid Active Fruit column.

When sampling or running produce, the resulting score for each Grade in the
Active Fruit Match row is converted to a % value, with 0 being the worst
possible produce and 100 being the perfect produce.
In our example above, our bad produce are achieving too higher grade, because
of their high amount of red. We will need to lower our red scale factor.

132 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Quality Grading, continued

6. Set your Quality cut-off point percentages against your Quality Characteristic to
achieve the required grading and adjust your scale factors as necessary.
We lowered our red scale factor to 10 and set our cut-points for our grades.

7. Our sample captured fruit achieved the required grading results:

Our Clean red fruit (red above 70%, bad = 0) are A grade. Lower red values
(Clean03) or higher bad (all the blemish) are grades B or C. Note the difference
between blemish07 and blemish 08 - they have exactly the same amount of
blemish but the red is lower on blemish08, sending it to grade C.

8. Remember to Regrade your Fruit Captures as you change your settings and to
save the changes to your Variety.

Calculation Formula Information (for very Advanced Users)


The actual calculation formula for the total count is:
Quality = scale1 * value1 + scale2 * value2 + … etc, and the count is scaled to be 0 to
100 (where scale1 is the scale factor for the 1st Characteristic and value1 is the value
this fruit has for this Characteristic in the Active Fruit column).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 133


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grade Optimization

InVision provides a grade optimizer that can automatically adjust grading cut-offs to
achieve a pre-defined percentage of produce in each grade affected. This is particularly
useful for optimizing produce outputs to sorting tables to achieve best use and location of
manual sorters/packers after the initial Sizer/InVision grading has occurred.
You can apply the optimizer to all grades, or just to a subset of grades. You can let the
grade optimizer control certain cut-offs while retaining specific requirements on others.
When you select the Grade Optimization option, InVision automatically provides all the
same Quality fields that are available when you set up a Quality characteristic manually
by adding a new Quality Category – see “Quality Grading” (Page 130).
Therefore, Grade Optimization works exactly like grading on Quality except that InVision
will automatically set the cut-points for the Quality to achieve the grade % you ask for.

Example scenario
In this example, a packhouse is pre-grading oranges. The oranges are waxed after the
automated pre-sort, and then a final manual sort is performed. The waxing and drying
tunnels have fixed capacity and are split into 3 equal tunnels - each tunnel can handle 1/3
of the fruit. Green fruit are sent directly to de-greening (before waxing). By using the
optimization option, the packhouse can arrange their manual sorters more efficiently. The
top 33% of fruit will need no manual sorting, as they will be high grade fruit; the middle
33% will need some sorting; and the bottom 33% will need the most sorting.
To achieve this grading, we set a fixed cut-point for how much green we will allow (25%,
changing to 10%). In the good color range of grades A to C we split the fruit based on the
amount of blemish (with a small percentage of green allowed) so that fruit with very little
Bad blemish are Grade A and fruit with any amount of Bad blemish are acceptable in
Grade C.
(We could also add a grade E for Juice grade, and set a maximum allowed bad value for
all the grades A-D so that very bad fruit go to Juice without any grading, however to keep
this example simple, we do not do it.)

Example procedure
These steps illustrate how you would set up our example grading:
1. Select the Variety you want to optimize grades for.
Notice the current rows and columns in the Grade Map.

2. Change the existing cut-points for Green so that Grades A - C are 0 to 10.

134 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grade Optimization, continued

3. Click Edit Variety to open the Fruit Variety Information window. In the Grade
Optimizer Options area, enable the Optimizer and select the grades that you
want the optimizer to apply to.

4. Notice that the Required % and Grade Optimizer rows, and the Scale Factor
column, are all added.

Note: If at any time you want to remove Grade Optimizer features, you will first
need to uncheck the Optimization option in the Fruit Variety Information
window (refer to Step 3 above).

5. Set the initial Scale Factors for the important Characteristics.


This allows you to specify how each characteristic affects the quality of the
produce in a positive or negative way. The scale factor should be positive or
negative for characteristics that add or detract from the quality of the produce
respectively.
Refer to Quality Grading (Page 130) for more information about setting scale
factors.

In the example above, the scale factors set for Green (-5) and Bad defect (-50)
are negative to ensure that the highest measures of these characteristics end up
in the lowest grade. You will have to adjust the magnitudes of these scale factors
to get the balance you want between the Characteristics you wish to optimize.
Notice that when you set a scale factor against a Characteristic, the Grades
selected for optimization become merged cells.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 135


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grade Optimization, continued

6. Review your cut-off point values against the required Characteristics.

In the example above, Grades A through C can only have up to 10% Green.
Actual grading will determine how much defect a piece of produce has and its
ultimate grade.

7. Check and adjust (if necessary) the Required %’s against the Grades to specify
the percentage of optimized produce you want in each grade. When you change
the required percentage for any grade, the last grade automatically changes to
keep the total across the optimized grades at 100%. Note that produce outside
the optimized grades do not contribute to these percentage measurements.

In the example above, produce with up to 10% Green will get split evenly
between the first three grades, depending mainly on how much Defect they also
have. Any produce that is too green is sent to the last grade.

8. When actually running produce, the Grade Optimizer characteristic displays the
Quality Measure for the Active Fruit (see 49.1% in the example below) and the
cut-off values used on the weighted measurement to achieve the required
percentages in each grade.

The Grade Optimizer row is read-only. Values will be automatically assigned and
scaled to certain grading characteristics.

136 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 4 – ADVANCED GRADING OVERVIEW AND CONCEPTS

Grading More than One Variety: Using Split Vision

On some occasions, you might want to grade two different Varieties at the same time on
different lanes (for example Lanes 1 to 4 grading Granny Smith apples, while Lanes 5
and 6 grade Galas). InVision can support this as long as separate computers (nodes)
control the separate lane groupings (e.g. one node controls lanes 1 to 4 and a different
node controls Lanes 5 and 6 as in the example above). The user interface for controlling
both Varieties is on the Master computer.
When Split Vision is enabled, the active Variety on the Variety screen is regarded as the
Primary variety, and the variety selected on the Offline screen is the Secondary variety.
The Variety and Offline buttons will display as Primary and Secondary. The default
names “Primary” and Secondary” can be given alternative names by your technician, if
required.
Note that you can still use the machine to grade the same variety on all lanes by
temporary turning Split Vision off.

Both varieties will be live and active during produce grading.

Using Split Vision


1. From the Variety menu, select Split Vision.

2. In the Split Vision screen, click the Split Vision check box.

3. Assign a Primary or Secondary Variety to each node of lanes and then click OK.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 137


SECTION 4 – ADVANCED GRADING – CONCEPTS AND GRADING OPTIONS

Grading More than One Variety: Using Split Vision, continued

4. Click on the Primary button and select a Variety.


Click on the Secondary button and select a Variety.

Note: The Varieties you select must be set up in Sizer to have split grading.

Removing Split Vision (temporarily)


From the Variety menu option, select Split Vision and uncheck the Split Vision
checkbox to restore the Variety and Offline modes.

138 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION V3.5 USER GUIDE

Section 5 – Dimension (Size and Shape) Grading

Overview
This Section describes the concepts and provides the instructions for setting up
Dimension Grading in InVision. Dimension grading is used to sort produce into
consistent grades based on size, shape, or other diameter or volume values.
You will require a good working knowledge of color mapping and grading setup
to implement the features described in this Section.

In this Section
Page
About Dimension Grading .............................................................................. 140
When to Use Dimension Grading .............................................................. 140
Grading By Size (Diameter and Volume) ....................................................... 141
Example of Size measurements ................................................................ 141
Grading on Fruit Size Category within InVision ......................................... 141
To set up Size Grading .............................................................................. 142
Diameter Measurement Options................................................................ 143
When to use Minimum, Maximum or Average Diameters ......................... 144
Grading by Shape ........................................................................................... 145
To set up Shape Grading .......................................................................... 145
Shape Grading Characteristic Options ...................................................... 146
‘Special’ Grades to Resolve Imaging and Positioning Problems ................... 152
To set up Special Grading for positioning problems.................................. 152
Special Grading Characteristic Options..................................................... 154
‘Special’ characteristic Modes ................................................................... 155
More about working with Doubled or Touching Produce ............................... 156
Different Ways that Produce Touch........................................................... 156
When to use ‘Treat Split Touching Fruits as Good’ ................................... 157
Fruit Variety Options that affect Size and Shape Grading ............................. 158
Major and Minor Diameter settings............................................................ 158
Diameter filtering options ........................................................................... 159
All other Dimension Grading settings ........................................................ 159
Size and Shape Grading Diagnostics ............................................................. 161
Results in the Fruit Capture Grid and Grade Grid ..................................... 161
Results in the Images view ........................................................................ 161

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 139


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

About Dimension Grading

Dimension Grading grades and sorts produce based on physical dimensions which are
used to identify variations in Size and Shape.
Size Grading is based on diameters or volume; Shape Grading sorts produce according
to their shape (i.e. round versus elongated, or rejecting flat kiwifruit).
Special Grading is related to Dimension Grading. It identifies inconsistencies in produce
placement on the sorting machine so that produce can be graded correctly.
See “When to Use Dimension Grading” below for more information.

When to Use Dimension Grading

Type of grading How it grades When to use


Size (Diameter Grades produce by its Used for sorting produce according to
and Volume) size, based on outlines, diameter or volume.
grading diameters, and See “Grading by Size (Diameter and
volumes. Volume)” (Page 141).
Shape grading Grades produce by its Used to separate elongated apples
physical shape, based from round ones, rejecting flat kiwifruit,
on outlines and etc.
diameter ratios. See “Grading by Shape” (Page 145).
Special grading Identifies produce that Used to identify:
is doubled up or • two pieces of produce in one carrier
touching on the sorting • interference from a neighboring
machine. Detects carrier
produce that has not
• produce that extends beyond the
been imaged correctly
view available. (Oversized pieces
because it is too large
can then be recycled and graded
or has other visual
correctly.)
problems.
See “Special Grades to Resolve
Imaging and Positioning Problems”
(Page 152).

140 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading By Size (Diameter and Volume)

Size Grading enables you to grade on produce diameter, volume and certain other
criteria.
Size grading is generally done by the Sizer software program. InVision passes to the
Sizer three size measurements (in addition to the Grade) for each piece of produce.
These are the Major diameter, Minor diameter and Volume. The Operator should
configure which of the different size “types” that can be measured should be passed as
the Major and Minor diameters. It might be a good practice to use the length from stem to
calyx as the Major diameter and the line that is 90 degrees to it (equatorial), as the Minor
diameter.
Because InVision’s size measurements are so accurate (standard deviation typically less
than 1mm), you can also combine InVision’s volume measurements with the Sizer
program’s weight measurements. This allows you to sort produce based on produce
density (weight divided by volume). Produce density is a useful measurement to make
when produce is at risk of being frost damaged, leaving the produce lighter than normal
for its size.
For more information on Diameters, see “Major and Minor Diameter settings” (Page
158) in “Fruit Variety Options that affect Size and Shape Grading” in this Section.

Example of Size measurements


The image below displays the diameters measured for an onion:

Note: For Size Grading, it is important to have the Color Map set up to detect produce
colors and conveyor colors accurately. Check the produce images by viewing their
Edges. If InVision is not measuring produce edges correctly, the dimension
measurements will not be accurate.

Grading on Fruit Size Category within InVision


In some rare cases you might want to include the size measurements (diameters /
volume) in the Vision grade. To do this, select Add Category, then choose Fruit Size –
Diameter, Volume. Select the properties you want and click Finish.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 141


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading By Size (Diameter and Volume), continued

To set up Size Grading

1. Open your Variety in either the Variety or Offline screens.

2. Click Edit Variety to open the Fruit Variety Information window and display the
Dimension Grading Options.

3. Select the grading options you require for both the Major diameter and the
Minor diameter.
See “Diameter Measurement Options” (Page 143) and “When to use
Minimum, Maximum or Average Diameters” (Page 144).

4. Select the Diameter Filtering type you require.


See “Diameter Filtering Options” (Page 159) in “Fruit Variety Options that
affect Size and Shape Grading”.

5. Select any other Size or Shape measurements required.


See “All other Dimension Grading settings” (Page 159) in “Fruit Variety
Options that affect Size and Shape Grading”.

6. Click Finish.

7. Grade a sample of produce and review the Diameter readings.


The diameter readings, as numbers, are available in the Info view. The diameter
lines are also available as lines overlaid on pictures in the Images view. This
displays the diameters for each image. When diameter filtering is used, you will
also be able to see both the raw edge and the filtered edge (yellow outline) on the
images.
See “Size and Shape Grading Diagnostics” (Page 161) in this Section.

142 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading By Size (Diameter and Volume), continued

Diameter Measurement Options


Major and Minor diameters are both selected from a drop-down list in the
Dimension Grading Options area in the Fruit Variety Information window:

The types of diameter options (e.g. Equatorial, Horizontal, etc) are described below.
The three variables (Min, Max and Avg) are explained in “When to use Minimum,
Maximum or Average Diameters” below.
Diameter types Description
Maximal The longest diameter.
Minimal The shortest diameter.
Perpendicular The diameter 90 degrees opposed to the maximal diameter.
Perimeter The diameter that would be obtained with a ring measurement
device.
(Not displayed in diagnostic images.)
Stem The diameter in stem / calyx orientation.
Only available when the Fruit has elongated stem option is
selected.
Equatorial The diameter, 90 degrees opposed to the stem diameter.
You can select this option even if the produce does not have
elongated stem. However the accuracy is not as good as when
the stem is clearly identifiable.
If the produce has elongated stem the equatorial diameter will be
calculated based on the location of the stem.
Otherwise it will be based on the statistical measurement of the
fruit shape.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 143


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading By Size (Diameter and Volume), continued

Diameter types Description


Stem length The length of the stem (the part that is cut out to measure
stem diameter).
Only available when the Fruit has elongated stem option is
selected.
Vertical The diameter 90 degrees opposed to the conveyor line.
Horizontal The diameter parallel to the conveyor line.
Longest horizontal The longest diameter parallel to the conveyor line.
May be useful when the fruit orient in a predictable way
(kiwifruit, lemon, some apple varieties)
Trapezoid height / Diameters are:
shoulder • Trapezoid height – Height of the box shape (should be the
stem diameter of peppers)
• Trapezoid shoulder – Width of the widest side of the box
shape.
Used for shape grading peppers (bell peppers / capsicum /
paprika).

When to use Minimum, Maximum or Average Diameters


Because InVision captures several images to make these diameters, it also offers you the
option of using the average, minimum or maximum value it found for the diameter type
you select. For the minimum and maximum values, InVision discards extreme values,
and then averages the 3 lowest or 3 highest values that remain.
For example, if you grade on the maximum diameter, the produce is more likely to fit
through a ring gauge of the corresponding size. If you were to grade on the average
maximal diameter, certain asymmetric produce may not pass through the gauge.
However, grading using maximum property is more susceptible to measurements errors.

144 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape

Adding Fruit Shape Category Characteristics to a Grade Map enables grading on a wide
variety of shape and behavioural properties.
Shape grading allows you to identify, reject or regrade produce with undesirable shapes
(e.g. elongation, flatness, lack of symmetry); behaviours (e.g. end-over-end rotation;
vertical instability; orientation) or characteristics (e.g. lack of smoothness; bad stem
angle).
For each Shape Characteristic, the Cut-off Point ranges set in the Grade Map (usually
values between 0 and 100) determine the scale and/or severity of the problem which is
acceptable within a Grade.
Note: Dimension Grading Option settings (in the Fruit Variety Information window) can
also impact your shape grading results. See “Fruit Variety Options that affect Size and
Shape Grading” (Page 158) in this Section for more information.

To set up Shape Grading


1. Open your Variety in either the Variety or Offline screens.

2. Add a Category to your Variety, and select Fruit shape.

3. Choose the characteristics appropriate for your grading (see “Shape Grading
Characteristic Options” below). You may want to add all the properties you
think may be useful, and then remove the ones that did not work.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 145


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

4. Capture a few produce images for your different grades and see which properties
can separate the shape features you require. Then set the cut-off point values.
See “Size and Shape Grading Diagnostics” (Page 161) in this Section.

Important:
For Shape grading, it is important to have the Color Map set up to detect produce colors
and conveyor colors accurately. Check the produce images to be certain that the edge of
the produce as InVision sees it from the images accurately measures the edge of the
actual produce. If InVision is not measuring produce edges correctly, the dimension and
shape measurements will not be accurate.

Shape Grading Characteristic Options


The Shape Grading Characteristics required in your Grade Map (if any) will depend upon
the produce type you are sorting and the shape values that will best achieve identification
of shapes or behaviours for grade sorting purposes. This enables rejection or resorting of
badly shaped produce or produce which cannot be accurately graded because of its
behaviour (e.g. end-over-end).

Shape Grade Map Description


Grading Value
Characteristic Explanation
Elongation 0 to 100, Separates elongated from round produce.
where 0 is a Useful for lemons and red delicious apples (which
perfect should be elongated) and onions (to identify
sphere, and torpedo shape versus round shape).
100 is a rod Example:

27% 12%
A low % of elongation indicates a round or
unstemmed fruit. A high % of elongation indicates
an oval or long-stemmed fruit.

146 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

Shape Grade Map Description


Grading Value
Characteristic Explanation
Flatness 0 to 100, Separates flat produce from round produce (e.g.
where 0 is a below 18% is round; above 25% is very flat; and
perfect inbetween is borderline).
cylinder or Particularly useful for kiwifruit.
sphere, and Example:
100 is a flat
ruler

Flat Medium Round


23% 18% 12%
Symmetry 0 to 100, Separates oddly shaped (asymetrical) produce.
where a low Useful for many fruit types.
measure is Example:
asymetrical
(e.g. a
banana) and
a high
measure is
symetrical
(e.g. a
carrot).

60% 33%
A low % of symmetry indicates an asymetrical fruit.
Stem length 0 to 100, Finds produce with excessively long stems (thick,
% where 0 is elongated stems only, e.g. onions).
no stem, Finds stems that were not cut properly on onions.
and 100 is Finds odd shapes on other produce (e.g. oranges
where the to find protuding navels).
stem length Example:
equals the
produce
diameter

0% 6%
The measurement is the length of the stem relative
to the size of the fruit.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 147


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

Shape Grade Map Description


Grading Value
Characteristic Explanation
Orientation 0 to 360, Identifies the stem end of the produce.
where 90 is Useful for gold kiwifruit labeling.
when the Also useful for peppers (bell peppers / capsicum /
stem is to paprika) to nominate left or right carrier drop to
the right of Sizer (via the Grade setup) and avoid stem
the entanglement.
conveyor, Example (using onions):
and 270 is
when the
stem is to
the left of
the
conveyor

90 270
The orientation is indicated by the location of the
stem on the 360 degrees of a circle.
Smoothness 0 to 100, Used to successfully grade Botrytis bumps on the
where 0 is skins of lemons. Measures using the outline of the
very bumpy, fruit images.
and 100 is Example:
smooth

90 100
Information about the different colored bumps can
be viewed. See “Size/Shape/Blemish Viewing
Mode (and Color Overlays)“ (Page 216) in
Section 8.

148 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

Shape Grade Map Description


Grading Value
Characteristic Explanation
Squareness 0 to 100, Measures elongated versus squat (square) fruit.
where fruit If we can detect the stem (e.g. on onions and
with: 0 are lemons) the height for this measure is the stem
very diameter. If not, InVIsion assumes fruit is rotating
elongated; correctly with the stem calyx line as the axis of
50 are the rotation.
same Useful for kiwifruit.
height as Example:
width; and
above 50
are squat
(short and
fat)

20% 50%
Vertical 0 to 100, Identifies produce that has changed its axis of
Diameter where 0 is rotation.
Stability stable and Produce displaying this behavior might need
100 is regrading.
unstable Useful for kwifruit and lemons.
Example:

Kiwifruit End 0 to 100, Identifies produce that rotates the wrong way. This
Over End where 0 is causes many of the shape measurements to be
good and a incorrect.
high value is Produce displaying this behavior will need
End Over regrading.
End Useful for kiwifruit or lemons.
Example:

Typically 35% or greater indicates fruit going End


Over End.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 149


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

Shape Grade Map Description


Grading Value
Characteristic Explanation
Curvature 0 to 100, Measures how straight or curved a piece of
where 0 produce is (e.g. a carrot should have 0 curvature; a
(low) is banana should have about 20% curvature).
straight (e.g. Useful for some varieties of potatoes. See
a ruler) and “*Curvature Note” below.
100 (high) is Example:
very curved
(e.g. a
horseshoe)

Fairly Low High


Curved 0 to 100, Measures the deviation from the main line of
Symmetry where 0 is curvature.
low (bad) Useful for some varieties of potatoes. See
symmetry “*Curvature Note” below.
and 100 is Example:
high
symmetry
(e.g. a
horseshoe)

High Low
Roundness 0 to 100, Similar to elongation in that it separates round fruit
where 0 is from elongated fruit.
elongated Useful for separating misshaped red delicious
(e.g. a apples which are not elongated. (Good red
carrot) and delicious apples should have roundness below 80
100 is very – 85%.)
round (e.g. Example:
a ball)

30% 80%

150 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Grading by Shape, continued

Shape Grade Map Description


Grading Value
Characteristic Explanation
Box Shape 0 to 100, Useful for red delicious apples, where a Box Shape
where 0 is below 70% usually indicates a misshapen fruit.
low (e.g. a Example:
ball) and
100 is high
(e.g. a
cardboard
box)

64% 75%
Stem Angle 0 to 180, Measures the angle between the stem and calyx. A
where a low good fruit will measure 180°. A low angle
value is measurement (e.g. 90°) indicates misshapen fruit
misshapen Useful for apples.
fruit and 180 Example:
is a good
fruit

150° 180°
Trapezoid 0 to 180, Measures how parallel the 2 sides of a piece of
Angle where 180 produce are. May be useful for shape grading
is a perfect peppers (bell peppers / capsicum / paprika).
rectangle Example:
and 0 is a
very “flat”
triangle

170° 150° 130°


Curvature Note:
If at least one the Curvature and Curved Symmetry measures is used, the
‘backbone’ of the piece of produce (a central curved line) is calculated. Note that this
calculation will increase the processing requirement significantly! The backbone
is drawn in Blue-Green on the image when displaying diameters. The perpendicular
diameter will then be the largest line perpendicular to the backbone.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 151


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

‘Special’ Grades to Resolve Imaging and Positioning Problems

When produce is not positioned correctly on the sorting machine or not rotating properly,
InVision may have problems grading the produce accurately. Most of the time, InVision
can detect these problems by assigning produce that is badly positioned to a special
grade. This produce can then be recycled or dropped to a sorting table, to achieve better
results.
Example:
The pictures below shows two touching onions, and a carrier on the conveyor that is
holding two small tomatoes (with apples either side to better illustrate the tomatoes sitting
in the carrier together). These are produce positioning problems that InVision can detect.

(For additional information see “More about working with Doubled or Touching
Produce“ (Page 156) in this Section.)

To set up Special Grading for positioning problems


1. Open your Variety in either the Variety or Offline screens.

2. Add a Category to your Variety, and select Special – doubles, touching,


oversize, etc.

152 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

‘Special’ Grades to Resolve Imaging and Positioning Problems,


continued

3. Choose the characteristics appropriate for your grading (see “Special Grading
Characteristic Options” below).

4. Check the box in the column for the grade you want to assign the special produce
to.

5. If you want, adjust the cut-off value (this step is optional).

6. Save the changes to the Variety.


Example:
If you used both Touching and Doubles, and assigned touching produce to Grade
A and Doubles to Grade E, your criteria would look like this:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 153


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

‘Special’ Grades to Resolve Imaging and Positioning Problems,


continued

Special Grading Characteristic Options

Special options Description


Double Factor Identifies two pieces of produce balanced in one carrier.
Touching Factor Identifies touching produce, whereby a piece of produce
appears to touch another piece on the conveyor.
Oversize Factor Identifies when a piece of produce is larger than the view
allows for, and dimensions measurements will therefore be
less accurate.
Slippage Identifies a piece of produce that has failed to rotate.
Loose skin (onion) Identifies loose skin, specifically on onions.
Stem detection Identifies produce when diameter grading couldn’t find stem /
error equator.
This may be used to identify that the stem / equatorial
diameters could not be measured accurately.
Stem in top view Identifies produce when blob detection found a stem in top
(instead of side) view.
This is for fruit that normally rotates on a carrier with its stem
in the side views. This grade identifies when produce is on the
carrier and showing its stem as end-over-end. The stem
appears in the top view, and may or may not appear in side
views of the fruit.
May be helpful in kiwifruit, lemon, and some apples.
Missed grade Identifies produce that InVision couldn’t calculate a grade for,
before it had to send the grade to Sizer.
If InVision cannot assign a grade to a piece of produce
because of insufficient time, the produce will be given an
‘empty cup’ grade. You can override this by adding this
“Missed Grade” characteristic and assigning it to a grade.
This can also used for grading fruit that was only partially
finished.

Note that all Special characteristics can also use one of two modes – Normal or Special.
See “‘Special’ characteristic Modes” following.

154 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

‘Special’ Grades to Resolve Imaging and Positioning Problems,


continued

‘Special’ characteristic Modes


Special characteristics can be set to one of two Modes - Normal or Special.

• Normal mode grades in the usual manner (i.e. grading is determined by the cut-off
point ranges you set against the grades).
• Special mode provides a tick box instead of allowing cut-off point ranges. Only one
grade (per Special characteristic) can be ticked. For example you can’t set both
Grade A and Grade C to be Doubles. However you can set Grade A as Doubles and
Grade C as Touching, or Grade A as Doubles AND Touching.

Compac recommends using Normal Mode. If required, you can change between Modes
in the Grade Grid. Note that you must select the Grades button to display this option.

In all Special characteristic grading, for both modes, InVision will:


• inspect all the images it has for a piece of produce, and
• calculate the percentage of the images that are affected by positioning problems.
If that amount exceeds the cut-off value you set, the produce will be assigned to the
appropriate Special grade.
You can then deliver this produce to a specific grade. It is useful to assign this produce to
a grade that will recycle them, so that the produce will be placed back on the sorter for
correct re-grading.
Note that if you want to use Special Mode for Special Grades, you cannot apply any
other criteria to that grade. For example, you cannot put touching produce into a grade
only if they are of a certain color, or in a certain size range. If a piece matches a Special
Mode grade, it will be assigned to that grade no matter how well it matches other grades.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 155


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

More about working with Doubled or Touching Produce

When produce is touching, either two large pieces in two consecutive carriers touch
each other, or 3 medium or small pieces bridge over two carriers, or a piece appears to
touch another piece on the conveyor. Touching produce creates problems with InVision's
diameter and edge measurements. It may also alter color grading and severely affect
blemish grading.
When produce is doubled, two small pieces of produce sit on a single carrier. This
creates problems with diameter and edge measurements.
Two small pieces of produce, in a case of “doubles”, might also physically touch each
other. The InVision definition of “touching” is that some part of the area detected as
produce by InVision runs all the way to the left or right edge of the area allowed for the
produce. The InVision definition of "oversize" is that the produce touches the top or
bottom of the area allowed for the produce. This area is controlled by the Fruit Limits in
InVision Calibration.
Normally, “touching” will only occur when produce does appear to touch. However, on
extremely large produce, it is possible to have both “oversize” and “touching” without
having any neighboring produce involved. Equally, it is possible to have genuine
“doubles” that will be either “oversize” or “touching”.
InVision will always attempt to "split" touching produce. The following image shows an
example of a touching onion that has been successfully split:

If the onion image was not split, the pink outline would have extended around the partial
onion to the left, and the white, red and yellow diameter lines would have extended into
the combined onion areas. The shape properties are calculated based on the outline and
certain diameters, leading to possible errors.

Different Ways that Produce Touch


Depending on the way the touching pieces of produce touch each other, it is often
possible to obtain better results for touching produce without using a ‘Special’ touching
grade. (See “To set up Special Grading for positioning problems” (Page 152) in this
Section.)
If the pieces are large, they will tend to bump into each other, and touch “front-to-back” -
the front of one piece of produce will touch the back of another. If the produce is smaller,
three pieces of produce might try to fit into the space meant for two. InVision may detect
several images in which one of these pieces of produce touches “side-by-side” with
another. These touching modes are shown here:

156 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

More about working with Doubled or Touching Produce, continued

It is difficult to see front-to-back touching produce, except by capturing images of them.


In contrast, it is usually very easy to see side-by-side touching produce as they roll under
the conveyor. Often produce that touch side-by-side will change carriers or fall off, often
before the weigh bridge. It is usually best simply to recycle side-by-side touching produce
by using a special touching grade.
When produce touches, InVision’s size, shape and color measurement accuracy may be
lower, leading to inaccurate grading.

When to use ‘Treat Split Touching Fruits as Good’


When InVision recognises touching fruit, it takes the produce image and approximates the
position of the boundary between the 2 pieces. This approximation can make color,
shape and size measurements less accurate than when measuring an isolated piece of
produce, but the result is still better than if the produce had not been split.
While using the Treat split touching as good option reduces the accuracy of grading,
because touching fruit, even when split correctly, cannot be graded as accurately as
single fruit, it will still reduce the recycling when grading certain sizes.
The rule to follow with Treat split touching as good is:
• Do not use this function if you can avoid it. If your sorting system can spare the
resources to recycle touching produce, this is recommended.
• If you are losing production time due to recycling of touching produce, use the Treat
split touching as good option. You will need to have a special grade for touching
produce. This option treats those fruit images that were successfully split as if they
never touched at all. This salvages images without filling up the recycling too much.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 157


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Fruit Variety Options that affect Size and Shape Grading

Dimension grading options are set up in the Fruit Variety Information window. This topic
covers all the options available and explains how some of the options available can affect
Size and Shape grading.

Major and Minor Diameter settings

For all grading of all produce, InVision passes diameter and volume measurements to
Sizer.
In Sizer you can set up sizing by weight; by any of the diameters; or by volume. You can
also use a combination of weights and diameters. The Volume calculation is also used for
Density grading. (Refer to the Sizer manual if you need more information.)
If Sizer is grading on weight, and the measurements are not required, then they are just
ignored. However, if Sizer is grading on Size or Density, then the measurements are
used, and the correct selection of the Major and Minor Diameter types is important.
Therefore, setting up accurate Size grading in InVision requires the correct selection of
the diameter “types”, but setting up Shape grading does not.
Each of the Major and Minor diameter measurement “types” also have three options -
Minimum, Maximum and Average. The “types” and options are explained fully in
“Diameter Measurement Options” (Page 143) and “When to use Minimum, Maximum
or Average Diameters” (Page 144) in “Grading By Size (Diameter and Volume)“ in this
Section.
It is a good practice to set the Major and Minor diameters correctly for your produce, even
when you are sizing by weight, just in case you want to try diameter sizing in the future.

158 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Fruit Variety Options that affect Size and Shape Grading, continued

Diameter filtering options


Diameter filtering is used for both Size and Shape grading. It smoothes out the diameter
values and minimizes the effects of noise in the picture, and small errors in fruit color
versus conveyor mapping.

These options are described below.


Filtering option Description
None No filtering. Use this when no size or shape grading is
required.
Average filter Standard filtering. Use this for most produce.
(strong)
Average filter Standard filtering with less smoothing. Use this to detect
(weak) small bumps on produce (e.g. lemon botrytis).
Stem cut filter Special filtering for onions. Use to detect cuts and stems on
onions.
Derivative filter (old This is an older version of the Stem cut filter. It is not used.
onion)

All other Dimension Grading settings


All the other Dimension grading options are described below.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 159


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Fruit Variety Options that affect Size and Shape Grading, continued

Select an option to turn it on; deselect an option to turn it off. All of these options may
affect Size and Shape grading.
(See also “Fruit Variety Information window options” (Page 59) in Section 3 for further
information about each option.)
Option When to use
Double Detection Selects which algorithm to use for detecting ‘double cupping’.
Options are Round (for most fruit), Cherry (for cherries or
plums) or Asymmetric (for potatoes, onions and pears).

Treat split touching Should generally not be selected.


as good See “When to use ‘Treat Touching Fruits as Good’” (Page
157) in “More About Working with Doubled or Touching
Produce”.
Fruit has elongated Affects detection of stem / equatorial diameters and some
stem shape measurements.
Select for lemons, onions, pomegranates and gold kiwifruit.
Move bands away Select for gold kiwifruit only.
from calyx
Use shape for Slippage is produce not rotating, but slipping on the rollers.
slippage Slippage can be detected by the shape of the piece of
produce not changing, or by marks on the piece not moving
as expected.
• Select this option if your produce IS NOT round (e.g.
potatoes).
• DO NOT select this option if you produce IS round (e.g.
lemons, oranges, kiwifruit).
Brightness Select for varieties with very large color change (e.g. blood
compensation oranges). The fruit edge position gets corrected according to
brightness change.
Dimension by .. Only displays on unsynchronized CIR machines.
Specifies if size and shape is by color or IR cameras.
Dimension This sets a diameter adjustment. This is the percentage (%) to
correction add or subtract from all the diameters for this variety. The
values are limited to +/- 25%. This feature should be used
only for small correction over a calibrated machine. For
instance on a dark fruit variety where the diameters measured
by InVision are consistently smaller than the real ones, you
may set 5% diameter adjustment to compensate for the
darkness.
This value is set to 0 by default for all existing and new
varieties. 0 indicates no special adjustment for this fruit
variety.

160 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 5 – DIMENSION (SIZE AND SHAPE) GRADING

Size and Shape Grading Diagnostics

Use the Shape measurements to fine tune your Shape Grading accuracy and cut-off
points or your Special grading results.

Results in the Fruit Capture Grid and Grade Grid


The Diameters and Volume measurements display in the Fruit Capture Grid against
each captured image:

Note that these diameters are based on the machine calibration at the time of capture.
Therefore, if you recalibrate diameters (with a ball or a chart) the diameters and volume of
existing captures will display values before the recalibration.

Shape values and Special values display against the Characteristics in the Grade
Grid (and also in the Fruit Capture Grid):

All the diameter readings, as numbers, can also be viewed in the Info view.
These can be used to check the accuracy of measurements, by running the same piece
of produce several times and checking for consistency of measurements and comparing
them to the actual value. (Actual values can be determined in a variety of ways. For
example, for some properties (such as diameters) you can measure the actual fruit. For
flatness of kiwifruit there are quality control tools available to assess the measurement
differences between good, medium and bad fruit. Some features, such as curvature,
require more subjective analysis, for example looking at the difference in the bend
between a straight fruit and a bent fruit, and ensuring that the bent fruit has the higher
curvature value).
See also “Viewing Information for Graded Produce (Info Screen)” (Page 230) in
Section 8 – Viewing and Monitoring your Processing.

Results in the Images view


In the Images view (Size mode), you can use various options from the right-click mouse
menu, to display the diameters graphically as lines overlaid on the pictures. When
diameter filtering is used, you can also see both the raw edge outline (pink) and the
filtered edge outline (yellow) on the images. You can use this to check if the outline
matches the piece of produce after size processing, and if the diameter you are interested
in is in the right direction (i.e. is the equatorial diameter going the correct way?)
See also Size diameter colors and what they mean (Page 217) in Section 8 - Viewing
and Monitoring Your Processing.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 161


INVISION V3.5 USER GUIDE

Section 6 – Blemish (or Blob) Grading

Overview
This Section describes the concepts and provides the instructions for setting up Blemish
Grading in InVision. Blemish grading enables InVision to sort produce based on surface
defects (which InVision identifies as ‘blobs’ on the produce).
Setting up blemish grading is more complex than setting up other grading criteria. Please
read all the instructions in this Section before setting up blemish grading. Setting up
accurate grading requires several cycles of testing and adjustment of the blemish
characteristics in the Grade Grid.
Tutorial 3 (Page 296) provides practical experience of simple blemish grading.

In this Section
Page
About Blemish Grading................................................................................... 163
When to use Blemish Grading ................................................................... 163
Glossary of Blemish Grading terms ........................................................... 163
Setting up your Variety to perform Blemish Grading ...................................... 165
Getting started ........................................................................................... 165
Set up your Variety and your basic Color Map .......................................... 165
Add the Defect Color characteristic(s) ....................................................... 165
Set up the Color Map for Blemish Grading ................................................ 165
Mapping on the ‘Good Skin’ tab ................................................................ 165
Mapping on the ‘Blobs’ tab ........................................................................ 168
Mapping on the ‘Blob Colors’ tab............................................................... 170
Set the Blemish Grading Parameters for your Variety .............................. 174
Set up your Grade Map for Blemish Grading ............................................ 176
Defect Colors ........................................................................................ 176
Defect Color Modes .............................................................................. 177
Which Defect Color Mode should you use? ......................................... 178
Total Area of Spots ............................................................................... 179
Blob Distribution .................................................................................... 181
Stem / Calyx Size ................................................................................. 182
Classified Blobs .................................................................................... 184
Blob Classification Rules ...................................................................... 187
Total Blob Count ................................................................................... 189
Adjusting Blemish Grading Strictness During Grading .............................. 190

162 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

About Blemish Grading

Blemish grading grades the produce based on the presence of areas on the surface of
the produce that are different from the normal surface of the produce.
InVision identifies these areas as “Blobs” on the produce. Identified blobs will include:
• Blemishes and defects, that reduce the quality of the produce – bruises, mold,
marks, cuts.
• Stem and calyx – which are normal features on produce and not blemishes. They
are identified for exclusion purposes.

When to use Blemish Grading

Normal color grading can be set up to identify obvious blemish areas (e.g. bird lime, big
rot spots, etc) by identifying “bad” colors on produce. So how do you know when you
need color grading and when you need blemish grading? For example, should grading
green patches on a potato be attempted using color grading or blemish grading?
While color grading is easier to set up, blemish grading provides a more sophisticated tool
for defect identification and analysis.
Blemish grading is your only choice when the colors of the blemishes you are interested
in can also appear normally on the produce. The extra processing that occurs with
blemish grading makes it possible to separate concentrations of these subtle colors from
surrounding skin and, more importantly, from the stem and calyx.
Also, blemish grading provides additional analysis of the blemish areas. You can grade
by the number or size of blemishes identified on a piece of produce, as well as the shape
and color of individual blemishes.
Generally, if you can accurately map the specific blemish to a color, then it is easier to
work with color grading. If you are trying to detect a smaller feature, or the color of the
blemish is acceptable in other areas of the produce, blemish grading will provide better
results.

Glossary of Blemish Grading terms

The following definitions explain the most important concepts you need to understand to
set up and test a Blemish grading variety.
Term Explanation
Blemish A defect on the produce surface.
Blob A mark on the produce identified by InVision. A blob may be a
Stem, a calyx, or a blemish.
Blobs tab Used to map areas of the produce as either ‘blobs’ or normal skin.
Blob Colors tab Used to map identified blobs into separate colors (i.e. black blobs or
brown blobs).
Good Skin tab Sets the contrast adjustment to ensure that the blob areas on fruit
are clearly visible to InVision. Blobs must appear dark against the
good skin.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 163


SECTION 6 – BLEMISH (OR BLOB) GRADING

Glossary of Blemish Grading terms, continued

Term Explanation
Color Seeds As in the Fruit Color map, a “click” records a color seed which is
taken as a sample of the color at the exact spot (i.e. pixel) where
you clicked. Color seeds are recorded against a specific tab, and
displayed (in tab order) in the Grading Status Bar. Seeds in the
currently open tab can be removed by clicking “Undo”.
Color/Infrared Available if your system has Infrared (IR) cameras.
views If your system is pixel synchronized, these are the two different
views (Color or IR) of the same picture. If your system is not
synchronized, then these are two views of two independent
pictures.
Some blemishes can only be detected by IR cameras. Turning IR
view on (using the Color/IR button in the Color Maps area) enables
you to perform the same mapping functions using IR images.
The IR view is useful for detecting some defects and for separating
severe defects (such as punctures) from non-severe ones.
Defect Color A characteristic used in the Grade Map to set the cut-off points for
characteristic blemish grading. (More than one Defect Color characteristic can be
used if necessary.)

164 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Setting up your Variety to perform Blemish Grading

Getting started
You should be familiar with Color Grading and Color Mapping before you attempt Blemish
Grading. The basic steps to set up Blemish Grading are:
• Start with a completed standard color map for your blemish variety.
• Add at least one Defect Color characteristic.
• Set up your Color Map for Blemish Grading:
• Perform good skin mapping on the Good Skin tab
• Perform blob mapping on the Blobs tab
• Perform blob color mapping on the Blob Colors tab (if you are using more than 1
blemish color).
• Adjust the Blemish Grading Parameters for your variety.
• Set up your Grade Map cut points for Blemish Grading.

Practise with most of these functions is provided in Tutorial 3 (Page 296) in Appendix A.

Set up your Variety and your basic Color Map

If you haven’t already done so, set up your Variety with a standard Color Map.
Default blemish parameters can be applied now, or later, by choosing an appropriate
“type + blemish” fruit type in the Fruit Variety Information window, for example:

Blemish parameters are discussed in more detail in “Set the Blemish Grading
Parameters for your Variety” (Page 174) in this Section.

Add the Defect Color characteristic(s)

To begin Blemish Grading, add at least one Defect Color characteristic to your Variety’s
Grade Map by clicking Add Category in your grade map and selecting Defect color.
This lets InVision know that you wish to use Blemish Grading, and enables the Blemish
Grading related tabs on your Color Map.

Set up the Color Map for Blemish Grading


There are three mapping steps to complete for Blemish Grading.

Mapping on the ‘Good Skin’ tab


Adjusting values on the Good Skin tab changes how sensitive InVision is when looking
for blobs on the surface of the produce. It needs to be adjusted to try and exclude
acceptable features (such as stripes on apples) from detection as blobs, while detecting
more subtle defects.
The default values on the Good Skin tab are often sufficient for blemish grading and
don’t need to be changed. Only adjust these values if you are having trouble mapping
the difference between defects and clean areas of the produce in the Blobs tab.
The Good Skin tab can only be adjusted for color images. To change how InVision
analyses good skin in infrared images, see “Blemish Grading Parameters tab options”
(Page 64) in “Variety and Offline Screens” in Section 3.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 165


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

The correct result in the Good Skin tab


The correct result in the good skin tab is:
• All marks (including stem and calyx) appearing darker than the rest of the
produce.
• All clean areas appearing a uniform grey color.

Any other result will significantly reduce the capability of the blemish grading system.

Adjusting the Good Skin values


1. In the Color Maps area, with a produce image loaded, click the Good Skin tab. (This
tab is only available after you have added a Defect Color characteristic.)

2. Select the Mode, and then adjust the Contrast and Brightness sliders until the good
areas of the produce are a uniform grey color, and any blemishes (including the stem
and calyx) are darkly colored.
Note: You would typically select Negative mode from the drop box, and then set the
Contrast between 10 and 60, and the Brightness to 100.
Tips:
• Use the mouse to drag the sliders. Do not release the mouse button until the
slider position and the resulting picture is to your satisfaction.
• Positive mode sets the produce to have the darkest color. Negative mode sets
the background to have the darkest color.
In the image below, notice that the red to green transitions on the apple appear a
uniform grey in the processed image, but the calyx is still visible as a dark mark. This
is a good result.

166 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

3. If any colors are saturated (i.e. too bright to see clearly), InVision marks the saturated
pixels in dark blue in the Good Skin map. These pixels are excluded from blob
detection. If large areas of the produce are saturated, you may have an incorrect Iris
setting; contact your Compac Technician.
Example of saturation:

4. When you have achieved the correct result, Apply Changes for the Variety and go to
“Mapping on the ‘Blobs’ tab”.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 167


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

Mapping on the ‘Blobs’ tab


The Blobs tab allows you to map produce into Blob and Non-Blob areas.

What are t-values?


• t-values are numbers that indicate how different an area of the produce is from what
InVision would expect a ‘good’ part of the skin to look like.
• The tR, tG, tB and tIr values indicate how far an area of the produce differs from good
skin in each color channel (tR for Red, tG for Green, tB for Blue and tIr for Infrared).
• The t-values for a particular pixel are displayed in the status bar as you hold the
mouse over that pixel in the Blobs tab.
• Large t-values (whether negative of positive) indicate that this area deviates
significantly from what InVision expects a ‘normal’ piece of produce to look like, and
therefore the area is probably marks on the skin. Small t-values indicate InVision
sees this area as an area of good skin.

Mapping blobs
1. Capture or load images of sample produce. You should work with a selection of
produce that is both blemished and clean.

2. Click the Blobs tab. This tab is only enabled once you load a Captured Fruit Image
and have a Defect Color in your grade map.
The Fruit and Conveyor buttons are now replaced by the Blob and No Blob buttons.

The captured images are shown in the top half of the window, and the processed
image in the bottom half. In the processed image:
• Light Blue areas are those identified as No Blob
• Black areas are those identified as Blob
• Dark blue areas are not processed for Blemish Grading.

168 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

3. Use the Blob and No Blob cursor buttons to select areas of the produce surface that
do and do not have blobs respectively. (See “Tips:” below.)
You must add at least one Blob seed and one No Blob seed.
Between two and five seeds are often enough to create a map that will identify most
of your blemished fruit.
The image below displays a completed blob map. Notice that the blemished areas,
and the stem and calyx, are displayed in black, while the clean area of the produce is
displayed in light blue.

Tips:
• When clicking blob and no blob points, watch the t-values (tR, tG, tB and tIr) in the
status bar. Identify an area as a Blob only if at least one of the values is larger
than 15. Identify an area as No blob only if all the values are smaller than 10. If
you need to break these rules, you probably need to adjust the settings on the
Good Skin tab.
• If your processed fruit image has entirely black fruit, then you have not created a
No Blob seed.
• For some produce types, it may not be possible to map areas that are a very
different color, but are not critical defects, as No blob areas (e.g. very strong
stripe on gala apples). If this is the case for your produce, see “Defect Colors”
(Page 176) in “Set up your Grade Map for Blemish Grading” in this Section.

4. If your Blemish grader is equipped with infrared cameras (7000CIR and 9000CIR
models), you will need to repeat this process to identify blobs in the infrared images
of the produce.
Click on the button at the top of the Color Map window to display the
infrared images.
Repeat the process of adding Blob and No blob seeds as in step 3 above.
The image below shows a completed Infrared Blob map. As with the Color Blob
map, the stem, caylx and any blemishes should be shown in black, while clean areas
are shown in light blue.
Note: The t-values for IR images are slightly different than those for color images. tIR
values larger then 10 are safe to identify as a blob, tIR values smaller then 4 are safe
to identify as ‘no blob’.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 169


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

5. Once you have achieved the desired result, click Apply Changes and go to
“Mapping on the ‘Blob Colors’ tab”.

Mapping on the ‘Blob Colors’ tab

What are Blob Colors?


Just as we map the produce into its separate colors during Color Mapping – we can map
blemished areas (blobs) into separate Defect Colors. This allows us to grade differently
colored defects to different standards (e.g. to treat dark blobs more severely than light
blobs).

In most situations, you will not need many Defect Colors. More advanced users of the
InVision system often only use two Defects Colors (light and dark), one IR Defect, and
possibly an Ignore Defect Color. You should try and keep your map as simple as
possible by adding as few defect colors as possible. This provides the most accurate and
repeatable results.

For details on when you might wish to use more than one Defect Color, and how to add
them to your Grade Map, see “Defect Colors” (Page 176) in “Set up your Grade Map
for Blemish Grading” in this Section.

The Blob Colors tab will only become active if you are using more than one Defect Color.

170 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

Mapping Blob Colors


1. Following the steps in “Add the Defect Color characteristic(s)” (Page 165), add as
many more defect colors as you require.
Name the colors using names that will indicate the meaning of these colors.
Once you have added and named your Defect Colors, your grade map categories
should look similar to the image below:

2. Click the Blobs Colors tab in the Color Maps window. This tab is only enabled once
you load a captured fruit image and have more than one Defect Color characteristic in
your grade map.
The Fruit and Conveyor cursor buttons are now replaced by the Blob and No Blob
buttons. Only the Blob button is active.

The captured images are shown in the top half of the window, and the processed
images in the bottom half.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 171


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

3. Mapping Blob Colors is very similar to mapping Fruit Colors. Click on the color that
you wish to map in the Grade Map, and then use the Blob cursor to select areas of
blobs that you wish to map to that Defect Color. You can only click in areas that have
been identified as blobs. Each click creates a Blob Color seed.
After each click you can click the Learn button to see what effect it had on your Blob
Color map.
The image below displays a completed Blob Color map. Notice that the blobs are now
colored with their respective Defect Colors.

Tips:
• As with Fruit Color mapping, you can click the Highlight button on the right of the
screen to highlight areas that have been mapped to the selected Blob Color.
• It is not necessary to ensure every pixel in a blob is assigned to the color you wish
that blob to be. Blobs will be identified as the dominant color within that blob, so
as long as at most of the blob is mapped to the correct color, it will be identified
correctly.
• Try to map Blob colors on the image where the blob you are interested in appears
in the centre of the produce.

172 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up the Color Map for Blemish Grading, continued

4. If your Blemish Grader is equipped with infrared cameras (7000CIR and 9000CIR
models), Blob Colors will need to be assigned to infrared blobs on the produce.
Add at least one extra Defect Color for your IR defects. You may wish to add more
than one IR defect color depending on your grading requirements.
Click on the button at the top of the color map window to display the
infrared images of the produce.
Repeat the process of adding Blob Color seeds as in step 3 above.
The image below shows a completed infrared Blob Color map.

Tip:
If you have a Blob Color where you have only added seeds from the Infrared tab,
blobs that are visible in infrared images will always be assigned to that Blob Color.

5. Once you have achieved the desired result, click Apply Changes. You have finished
the required color mapping to set up Blemish Grading. Go to “Set the Blemish
Grading Parameters for your Variety”.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 173


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set the Blemish Grading Parameters for your Variety

Once you have set up your Color Map for blemish grading, you need to set the Blemish
Grading Parameters for your variety.

What do the Blemish Grading Parameters affect?


The Blemish Grading Parameters are primarily concerned with two processes, Blob
Tracking and Stem Detection.
• Blob Tracking is the process InVision uses to determine whether blobs found in
separate images of a piece of produce are, in fact, the same actual mark on the
produce.
Every time InVision identifies a blob, it calculates its position (latitude and longitude).
If the positions of blobs in different images are sufficiently similar, InVision will treat
them as the same blob, and only count them once.
There are several parameters you can change to help InVision correctly track blobs
between images.
• Stem Detection is the process of identifying which blobs on the produce are the stem
and calyx.
There are several parameters you can change to give InVision hints about the
position and size of the stem and calyx, resulting in improved stem detection.

To set up Blemish Grading Parameters for a Variety


1. InVision has default settings for many produce types.
In the Fruit Variety Information screen (click Edit Variety to display the screen),
check to ensure that the “type + blemish” option is correctly set for your produce
type. This sets the Fruit Variety Information and Blemish Grading Parameters
options to the best default settings for your produce type.

174 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set the Blemish Grading Parameters for your Variety, continued

Note: If there is no “type + blemish” option for your produce type, it is still
possible to set up Blemish Grading. Use the type that best matches your produce,
and spend some time testing and editing the blemish grading parameters.
See “Blemish Grading Parameters tab options” (Page 64) in “Variety and
Offline Screens” in Section 3 for a detailed explanation of all these parameters.

2. Capture or load images of your sample produce. You should work with a selection
of produce that is both blemished and clean.

3. View the sample produce in the Images screen.


Enable the Blobs and View All Blobs options to ensure you can see all the blobs
that InVision has identified. You should see all marks on the produce detected as
Blobs, and no good parts of the produce detected as Blobs. If not you will need to
adjust your Blob Mapping or Good Skin setting in the Variety (or Offline) window.
For help working with the Images screen, including the meanings of the colored
outlines on blobs, see “Viewing Captured Produce in the Images Screen” (Page
209) in Section 8.

4. You now need to adjust the Blemish Grading Parameters so that the stem, calyx,
and each blob are only identified once.
In the Green apple example below, the stem was being identified (with a white
outline), but was also being identified as a blemish (with a pink outline). A
decrease in the Similarity Threshold value was required to grade this piece of
produce correctly.

Before - Stem identified twice, once as a blemish

After – ‘Similarity Threshold’ value decreased and stem identified correctly

Tips:
• If all the blob grading parameters are correct and you just need to adjust the
Similarity, you could instead use the Adjust Blemish Strictness window to
achieve the same results. See “Adjusting Blemish Grading Strictness
During Grading” (Page 190) in this Section.
• It is sometimes not possible to have all blobs on every piece of produce
identified correctly. For example, if produce is misshapen, rotating poorly or
coming off the carriers, it might be difficult to set parameters to track the blobs
correctly without then missing blobs on more normal produce.
Start by getting the tracking correct on normal produce, and then improve the
tracking on odd pieces of produce.
• To deal with changes to fruit quality, you may need to change the Blemish
Grading Parameters during production. After a change during production,
make sure you sample the quality of produce at the outlet to ensure it is being
graded correctly.
• For a detailed explanation of all the blemish parameter options available and
how they behave, see “Blemish Grading Parameters tab options” (Page 64)
in “Variety and Offline Screens” in Section 3.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 175


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set the Blemish Grading Parameters for your Variety, continued

5. Once you have achieved the desired result, click Apply Changes. Go to “Set up
your Grade Map for Blemish Grading”.

Set up your Grade Map for Blemish Grading

Once you have prepared your Color Map for Blemish Grading and fine-tuned your
blemish grading parameters, you are ready to construct a Grade Map. There are several
categories you can add to your grade map for Blemish Grading:
• Defect Colors – Most of the time, Defect Colors are the only category you need to
add to your grade map. They allow you to split defects into different colors.
• Total Area of Spots – Allows you to grade on the total area of small blobs of any
color.
• Blob Distribution – Allows you to grade on how densely or sparsely blobs are
grouped on the surface of the produce.
• Stem / Calyx size – Allows you to grade on the size of the blobs identified as stem /
calyx.
• Classified Blobs – If required, Classified Blobs allows you to grade on the size,
shape, color and position of blobs.
• Total Blob Count - Not commonly required. Allows to you grade on total blob count
on a piece of produce.

This Section explains when to use each category, how they behave and how to set them
up.

Defect Colors

What are Defect Colors?


This is the most common - and most useful - category for constructing a Blemish Grading
map. All Blemish Grading maps must contain at least one Defect Color.
Every time InVision identifies a blob, it will determine the color of the skin inside that blob.
Each blob will be assigned to one of the colors you have added to your ‘Defect Colors’
category.
You can grade differently colored blobs using different modes and different cut-off points.

How Defect Colors behave


InVision follows two simple rules to determine which Defect Color a particular blemish will
be assigned to:
• A blemish is assigned to the dominant color of the skin within it. For example, if you
have two Defect Colors, with most of the blemish mapped as ‘Light Defect’ and some
as ‘Dark Defect’ – the blemish will be assigned to the ‘Light Defect’ color. However
the pixels inside the blobs are still classified to their original colors and will be counted
separately.
• If you have separate Color and Infrared Defect Colors (i.e. for each Defect Color, you
only added Blob Color seeds from either the color OR the infrared images, never
both) – then all blobs that are visible in the infrared images will be assigned to an
Infrared blob color, even if the same blob is visible in the color image.

176 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

Defect Color Modes


Like normal Fruit Colors, Defect Colors can operate in different Modes, which determine
how they are counted.
There are seven different Modes for counting blob colors:
Mode Description
% This mode displays the percentage of the total surface of the fruit that is
covered by blemishes of this color.
A value of 0 indicates no blemishes of this color, a value of 100 indicates
the entire fruit is covered in blemishes of this color.
This mode is not used very often, as blemishes tend to be so small they
give values below 1 – consider using the ‘per 10k’ mode instead.
Area This mode displays the total area (in mm2) of blemishes of this color.
A value of 0 indicates no blemishes of this color, the largest possible value
is 9999.
Per 10k This mode is similar to % calculation mode, except that the numbers are
100 times larger. This enables very small percentage values to be entered
(e.g. a value of 55 in this mode is identical to a value of 0.55% in % mode).
Ignore This mode ignores all blobs of this color – they will not be used for further
grading. This mode is useful if there is an acceptable feature of the fruit
that is being detected as a blob (e.g. stripes on an apple or eyes on a
potato).
Severity These modes allow you to grade on blob severity (either by area or
Area percentage). The severity is a measure of the area, or the percentage of
Severity area, and the darkness of the blemish. In this way, very small amounts of
% dark defect can be considered as being just as bad as larger amounts of
lighter faded blemish.

Blob This mode allows you to grade by the number of blobs of certain sizes,
Count rather than their total area. It is used if you wish to downgrade produce
that have several small defects that do not add to a significant area.
To switch between grading by Count, Area or Both, change the ‘Grade
Blob Colors by…’ setting in the Blemish Grading Parameters window
(see “Blemish Grading Parameters tab options” (Page 64) in “Variety
and Offline Screens” in Section 3).
Note: When grading by Blob Count, a small change in the number of
pixels detected in a blob can easily move it from a small to a medium, or a
medium to large, blob. Results achieved can be less consistent in this
mode. It is usually best to grade Defect Colors by area. If you have a
specific defect that needs to be graded by count, consider adding it as a
classified blob, and grading that classified blob by count.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 177


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

Which Defect Color Mode should you use?


Here's some advice on which Mode to select.
Area
• Grading by Area is used most commonly for Defect grading, as it can grade
according to the defined industry quality standard grading rules (e.g. no more than a
specified area (e.g. 3 mm2) of total blemish is permitted on a piece of produce to
achieve a specified grade or class).
% or Per 10k
• Grading by percentage measures are used where produce sizes vary, and more
defect is tolerated on larger pieces of produce than on smaller pieces of produce.
Typically the Per 10k mode enables a more flexible value for setting grade-grid cut-
off points.
Severity (Area or %)
• Grading by Severity (specifying either Area or %) is used when the “darkness” of a
blemish or defect should be taken into consideration in the grading result. For
example fruit with very dark blemish scars should be downgraded, while fruit with light
blemishes that blend in (i.e. are not as conspicuous) should be upgraded.
Blob Count
• The Blob Count mode should be used rarely, if at all, as very small variations in pixel
analysis can produce inconsistent grading results.

How to add a Defect Color


1. In the Variety or Offline Grades Screen, click Add Category and add a Defect
color.

2. If you have chosen to grade by Blob Count, you will see the Small, Medium and
Large categories as shown below.

The numbers to the right of these sizes indicate the minimum diameter (in mm) for a
blob to be included in that size range.
In the example above, blobs with a diameter of at least 5mm will count as medium;
blobs with a diameter of at least 10mm will count as large.

178 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

3. Now add cut-off points for the Defect Color characteristic. For help in determining
initial cut-off points, see “Guidelines for Grading” (Page 96) in Section 4.

4. Once you are satisfied, click Apply Changes.

Total Area of Spots

What is Total Area of Spots?


Total Area of Spots allows you to grade on the total area covered by small blemishes of
any color.

When to grade by Total Area of Spots


Grading by Total Area of Spots is useful if you have a defect that presents as a large
number of very small blemishes, but these small blemishes do not add up to a significant
area (e.g. scale defect on citrus).

How to add grading by Total Area of Spots


1. In the Variety or Offline Grades Screen, click Add Category and add a Defect
color.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 179


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

2. In the Characteristics window, select Add total area of spots, and then click Finish.

3. The Spots characteristic will be added to your Grade Map.

The number to the right of the Spots characteristic indicates the maximum diameter
(in mm) a blob can be to be considered a Spot. In the example above, any blob
smaller than 7 mm will be considered a Spot. Any blobs below that size will be added
to the Total Area of Spots, regardless of their color.

4. Now add cut-off points for the Spots characteristic. For help in determining initial cut-
off points, see Guidelines for Grading in Section 4.

5. Once you are satisfied, click Apply Changes.

180 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

Blob Distribution

What is Blob Distribution?


Blob Distribution allows you to grade on how blobs are grouped on the surface of the
produce. These include how densely the blobs are grouped, and how much clean area
the produce has.

When to use Blob Distribution


Grading by Blob Distribution is particularly useful for produce where one blemish area, or
a group of small blemishes, may be acceptable for a medium grade.
For example, if a small number of blobs are concentrated in one area, the produce may
be acceptable for a medium grade but not for a high grade.

How to add Blob Distribution


1. In the Variety or Offline screen, click Add Category and select Blob Distribution.

2. Choose the characteristics you wish to add.

• Max spot density allows you to grade on how closely spots (small blobs) are
grouped in the most blemished part of the produce. This may be used for
grading scale on citrus.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 181


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

• Average spot density allows you to grade on how closely spots are grouped,
on average, over the whole produce.
• Clean area allows you to grade on how much of the produce is free of blobs.
This is a simple measure of the quality of the whole produce.
• Continuous clean area allows you to grade on the size of the largest clean area
on the produce. This is useful to decide whether the produce can be packed
‘clean side up’.

3. The Blob Distribution characteristics you selected are added to your grade map.

Add cut-off points to each grade as required.


The values next to the spot characteristics (Average and Max spot density) are the
maximum size a blob may be to be considered a spot for this characteristic (this may
be different for Average and Max spot density).
The values next to the clean area characteristics are the maximum amount of
blemish allowed in an image to still be considered clean image.

4. Once you are satisfied, click Apply Changes.

Stem / Calyx Size

What is the Stem / Calyx size category?


This explains how to grade on the size of the Stem / Calyx once they have been
identified.
Once InVision has identified the Stem and Calyx on the produce, they will be marked as
blobs, but excluded from being graded as defects. The Stem / Calyx - Navel / button
size category allows you to grade your produce based on the size of these blobs.

When to add the Stem / Calyx size category


The Stem / Calyx size category is useful if you have a defect that presents itself as an
unusually large stem / calyx.

On most produce stem and calyx sizes vary considerably, even in good produce. If you
add this category you need to monitor your grading carefully to ensure you are not
downgrading good produce.

182 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

How Stem / Calyx size behaves


When this category is set up, InVision will identify two blobs at opposite ends of the fruit
as the Stem / Calyx pair.
• The smaller of these two blobs will be called the Stem.
• The larger of these two blobs will be called the Calyx.

How to add Stem / Calyx size


1. In the Variety or Offline Grades Screen, click Add Category and then select Stem /
Calyx – Navel / Button Size.

2. Choose whether you wish to add Stem Size, Calyx Size, or both.

Remember, the larger blob of the Stem / Calyx pair will be called the Calyx and the
smaller blob will be called the Stem.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 183


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

3. The Stem Size and/or Calyx Size characteristics will now be added to your Grade
Map. You can assign cut-off points to them in the same way you would a Defect
Color.

4. Once you are satisfied, click Apply Changes.

Classified Blobs

What are Classified Blobs?


Classified Blobs allow you to separate blobs into different classifications based on the
properties of the blob. These properties include their color, size, shape or position on the
produce. It is then possible to grade these classifications differently.

When to use Classified Blobs


Classified blobs can be used when you need to distinguish particular defects based on
their size, shape, or position on the produce.

How Classified Blobs behave


After a blob has been assigned a Blob Color, the properties of the blob will be compared
to the rules you have set for your Classified Blobs. If a blob matches ALL the rules you
have assigned to a Classified Blob, then that blob will be recognized as a Classified Blob.

If a blob is recognized as a Classified Blob, it will be counted twice in your Grade Map -
once in the Defect Color that it matches, and once in the Classified Blob that it matches.

If a blob matches all the rules for several different classified blobs, it will be counted in
each classification that it matches.

184 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

How to add Classified Blobs


1. In the Variety or Offline Grades Screen, click Add Category and then select
Classified blobs.

2. Choose which Defect Colors you wish to include in this Classified Blob.

Only blobs that are the colors you select here can be identified with your Classified
Blob. In the example above, only blobs that are Light Defect or Dark Defect can be
identified with your Classified Blob.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 185


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

3. Now choose the shape, size and color properties that a blob must match to be
identified as your Classified Blob. These are called Classification Rules.

For a detailed description of what the Classification Rules mean and how they apply,
see “Blob Classification Rules” below.

4. The Classified Blob will now be added to your Grade Map. You should change the
name of the Classified Blob to describe what this classification means. Insert cut-off
values for each grade in the same way you would for a Defect Color or Fruit Color.

186 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

5. To change your Classification Rules (which were added in Step 3) later on, right click
on your classified blob and choose Classification rules.
Example:

To change the blob colors which can receive this classification (which were added in
Step 2) later on, right click on your classified blob and choose Map colors function.

6. Once you are satisfied, click Apply Changes.

Blob Classification Rules


When you create or alter a Classified Blob, you need to specify the properties that your
Classified Blob requires. See below for a detailed explanation of the properties available
for each blob. For information on how and when to create a Classified Blob, see
“Classified Blobs” in this Section.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 187


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

Rule Description
Area (pixels) Area specifies the minimum and maximum area a blob
must have to match your rules. This is measured in
pixels.
Density (%) Density measures how many pixels within the blob are
defect pixels.
Depth (Grey levels) Depth measures how ‘dark’ a blob is compared to the non-
blob area around it. A higher value indicates the blob is
darker than the area around it.
Elongation (ratio) Elongation measures the ratio between a blobs length and
width. A circle would have an elongation of 1.
Tilt Angle (Degrees) Tilt Angle measures the angle between the blob and a
vertical line through the piece of produce.

0o Tilt Angle 45o Tilt Angle

This is useful for finding defects that always appear as a


straight line between the stem and calyx (e.g. Hayward
marks on kiwifruit).
Angle from stem Angle from stem measures the angle from the stem blob.
(Degrees)
Latitude (Degrees) Latitude indicates the position of a blob on the produce.
Latitude is measured relative to the rotation of the produce
as it moves through the InVision cabinet. A blob that
rotates through the centre of the top view has latitude of 0.
A blob on the end of the produce has latitude of 90. A
blob with latitude above 50 typically appears on the side
view of the produce.
This is useful on predictably orientating fruit, such as
kiwifruit, to separate blobs near the centre of the fruit
(where we have high confidence in them being bad) and
blobs close to the edge (where we may be seeing
shadows of ‘beak’).
Angle From Vertical This measure is the same as ‘Tilt Angle’.
(Degrees)
Max Depth (Grey levels) Max Depth compares the darkest pixel in the blob to the
non-blob area around it. Higher values indicate the
darkest pixel is much darker than the area around it.
Curvature (%) Curvature measures how curved an elongated blob’s
shape is.
A straight line blob would have a curvature of 0%, a horse-
shoe shaped blob would have a curvature of 100%.
Length (pixels) Length measures the longest straight line that will fit inside
a blob.

188 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

Rule Description
Defect Color ‘n’ Every Defect Color will have an entry in the Classification
Rules screen. Specify the percentage of a blob that
needs to be mapped to a particular color for a blob to
match your rules.
IR darkness (Grey This measure is the same as ‘Depth’ – but only measures
levels) depth in IR.
Max IR darkness (Grey This measure is the same as ‘Max Depth’ – but only
levels) measures depth in IR.
Shape factor A different measure of elongation. A low number indicates
a round blob.
Defect Color ‘n’ in other This option will only appear on non pixel-matched InVision
view 9000 CIR machines. It shows the amount of ‘Defect color
n’ in the corresponding blob from the other type of
camera. That is, if this blob appears in the IR view, this
value will show the amount of ‘Defect color n’ in the
corresponding blob in the color view.
If you find you need to use this feature often, you may find
significant benefit in upgrading to a pixel-matched
configuration of InVision. Please contact Compac Sorting
Equipment or your local agent for advice.

Total Blob Count

What is Total Blob Count?


When grading blobs by Count (as opposed to Area) you may want to grade on the total
number of blobs of all colors, in addition to grading on the number of blobs in particular
colors. In this case use the Total Blob Count option.
Total Blob Count grades Defect Colors by the total number of blobs of ALL defect color
on a piece of produce, rather than by count of individual Defect color.

How to add Total Blob Count


Note: This option is only available when at least 2 blemish colors are used.

1. Set the Add total blob counts option in Edit Variety, Blemish Grading parameters:

2. Click Add Defect Color and select Add total blob counts.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 189


SECTION 6 – BLEMISH (OR BLOB) GRADING

Set up your Grade Map for Blemish Grading, continued

3. In the Grade Grid, total blob values are calculated against the Total blobs
characteristic.
In the example below the piece of fruit has 2 small brown blobs and 1 small green
blob, giving a total of 3 small blobs. Medium and Large blobs are similarly totaled.

4. Set Total blobs cut-off point values against the Grades.

Adjusting Blemish Grading Strictness During Grading

Selecting Adjust Blemish Strictness from the Variety menu (or pressing Ctrl+J)
displays the Blemish Strictness window.
Note: This menu item is available from the lower Client access level (whereas editing
Blemish grading parameters is an Advanced Client access function).
This feature allows operators to perform quick adjustments to compensate for difference
in accuracy of blemish tracking between batches, without permanently altering the
Blemish grading parameters (set in the Fruit Variety Information window). The main
reason for changing the strictness would be a shift in the predominant fruit shape.
Using this option, an expert grader (or a Compac Technician) can set the Blemish
grading parameters and then instruct the operator to only adjust the Strictness (or they
can even provide some specific rules - such as: for good shaped fruit batches use +2; for
bad shaped batches use -3.)

The strictness value slider modifies the ‘Similarity Threshold (%)’ value that is set in the
Blemish grading parameters window (via Edit Variety), e.g. 95 in the example below:

190 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 6 – BLEMISH (OR BLOB) GRADING

Adjusting Blemish Grading Strictness During Grading, continued

For this example, to temporarily adjust the Similarity Threshold to 92; simply move the
strictness slider to -3 and click OK.

Tips:
• If the current batch has nice regular shape, you can increase the strictness.
• When a new batch is coming through with more deformed fruit you can simply
decrease the strictness.

Warnings:
• If you tick ‘Set as new base level’, the similarity threshold setting in the Blemish
grading parameters is permanently changed with this adjustment, allowing you to
adjust again from a new level. Note that if you continue to adjust and tick this option,
you can get your similarity to drift away from the original value, so ticking the option is
not recommended. This tick box is only enabled in Advanced Client access level.
• The adjustment allowed is between -10 to +10. This range is quite wide. Adjustments
larger than + or -5 are not recommended.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 191


INVISION V3.5 USER GUIDE

Section 7 – Texture Grading

Overview
Installation and configuration of the Texture Grading software is a Compac
Technician task.
Setting up texture grading Varieties is complex and requires the skills of an
Advanced Operator and/or a Compac Technician.
Texture Grading is currently useful for identifying puff and crease on oranges,
and botrytis and scale on kiwifruit.

In this Section
Page
About Texture Grading ................................................................................... 193
When to use Texture Grading ................................................................... 193
When NOT to use Texture Grading ........................................................... 193
Limitations .................................................................................................. 193
How to set up cameras to use Texture grading ......................................... 194
About the two texture grading methods – pixel or image .......................... 194
Texture grading for Orange Puff and Crease (by classifying images) ........... 195
Texture grading for Kiwifruit Botrytis (by classifying pixels) ........................... 199
Texture grading for Kiwifruit Scale (by classifying pixels) .............................. 201
To view the texture diagnostics ...................................................................... 204

192 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

About Texture Grading

In some circumstances Texture grading is available on InVision 7000 and 9000 systems.
The option, if available, requires software installation and system configuration by a
Compac technician.
This is an Advanced Operator or Technician task as Texture Grading setup can be
complex and requires knowledge and skill. The parameters specified here depend upon
your produce, your machine configuration and your camera calibration. If you are not
confident following these general guidelines, please consult your local Technician or
Agent for assistance and training.

When to use Texture Grading


Texture grading is useful for detecting:
• puff and crease on oranges and mandarins
• smooth skin versus coarse skin on oranges (mainly Valencia)
• botrytis on kiwifruit
• scale on kiwifruit.

When NOT to use Texture Grading


• Do not attempt to use Texture grading for:
• botrytis bumps on lemons – to identify smoothness (as using Shape grading is a
better option).
• Hayward marks on kiwifruit – to identify classified blobs (as using Blemish grading is
a better option).

Limitations
When Texture grading is enabled, the Primary Function Grading option in the Fruit Variety
Information window is disabled:

However, Function Grading is still available on the Secondary Function by adding a


Function Color Category and selecting the appropriate function from the selection
window (e.g. Clementine).

For a more detailed explanation of functions see “About Primary and Secondary
Functions” (Page 118) in Section 4.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 193


SECTION 7 – TEXTURE GRADING

About Texture Grading, continued

How to set up cameras to use Texture grading


Check your camera setup.
• Make sure the picture is in focus and is not saturated. Texture is looking for very
subtle changes in fruit brightness (e.g. to detect creases on oranges). Loss of focus
or saturated images will hide these changes.
• Note that if the image is too dark the fine details of texture may be lost, for example:

Good Saturated Too dark


• Very accurate camera matching is also needed to ensure all lanes grade the fruit in
the same way.

About the two texture grading methods – pixel or image


There are 2 ways of grading texture – by classifying each point in the image (pixel) into
several texture classes, or classifying each image into the same classes.
When setting up your Texture Variety, click the Texture Grading Parameters button to
display the Texture grading parameters window. If you then check (i.e. tick) the Using
Texture Rules for Texture Processing box, you are classifying full images. If you leave
that box unchecked then you are classifying pixels. Your selection will depend upon
whether you are setting up orange or kiwifruit texture grading.
Instructions for setting up both methods of Texture grading are provided below.
Both methods use the click and learn mechanism used for color mapping. However the
learning algorithms used are different and require some attention when mapping.
The full image algorithm allows for the occasional error in the examples given to it (e.g. a
good image is clicked on as crease). As a result even the original examples (the seeds)
are reclassified when clicking Learn and these may end up displayed in the wrong class.
When this occurs, it is not a problem - just click on more images of the correct class and it
will learn correctly.
At least 3 seeds for each class are needed (full image) and typically 50 to 100 seeds are
needed for good robust results.
With pixel classification there is an extra step behind the scenes (called pre-processing).
If you change anything in the Texture parameters window (only in pixel classification
mode) you will need to clear all of your captures and reload them to refresh that pre-
processing step.

194 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

Texture grading for Orange Puff and Crease (by classifying images)

Texture grading for oranges is based on grading each full image as creased or not, and
then grading on the % of images that are detected as creased (with side view images
counted as 1 image per side).

To set up the image texture grading


1. Set up a New Variety, or edit an existing Variety.

2. Click the Texture grading parameters button to open the Texture grading
parameters window.

3. In Load Default Version, select Default Citrus Presets from the drop-down list.

The Grading Attributes and the Advanced Parameters default to the required
settings.

4. Choose Texture Image Type – Color.

5. Click OK and then click Finish to save your changes.

6. If you have not already done so, create your Categories – Color, Blemish, etc.
and complete your standard Color mapping and Grade Grid set up to achieve the
color and blemish grading you require.

7. In the Grade Grid, add a Texture Category and select Creases and Fruit, and
perhaps Rough skin also.

8. Capture or load your creased orange images and view them in the Color Maps
area.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 195


SECTION 7 – TEXTURE GRADING

Texture grading for Orange Puff and Crease (by classifying images),
continued

9. Open the Texture Color Maps tab.

10. Adjust the Brightness slider at the bottom of the tab so that the good orange
colored parts of the oranges are colored (in the reduced image) and the
blemishes, stems, and green areas are conveyor color.

Note: The Processed Fruit Image displays the areas that can be used in the
corresponding texture color that this image is classified as, while the ones that
cannot be used are displayed in the processed conveyor blue color.

11. Progressively map your good and bad images.


Select the appropriate characteristic for the image e.g. Creases or Rough skin
(for mapping bad skin), or Fruit (for mapping good skin) and then click the cursor
on an image to map it. The cursor defaults to the correct cursor type (e.g. No
Texture for Fruit, Texture for Rough skin and Creases) – see picture following.

196 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

Texture grading for Orange Puff and Crease (by classifying images),
continued

The mechanism behind the learning is different to ordinary color mapping, and
each click will classify an entire image and not just a pixel, but the method for
mapping is the same. You will need at least 3 examples for each Texture
characteristic you use, but it is most likely that around 50 – 100 examples (clicks)
will be needed.

In the screen above, creased oranges are mapped to the light blue Creases
characteristic color.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 197


SECTION 7 – TEXTURE GRADING

Texture grading for Orange Puff and Crease (by classifying images),
continued

12. Click and Learn all your Texture characteristics and review your results in the
processed fruit image, and your grading in the Grade Grid, exactly as you do when
Color Mapping.

In the screen above, good oranges are being mapped back to the good Fruit
characteristic.

13. When you have finished Texture mapping, review all your grading results for the
captured images, and refine your grading criteria (i.e. cut-off points) against your
Texture characteristics.

198 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Botrytis (by classifying pixels)

In Kiwifruit Botrytis mode you are classifying pixels, not whole images.

To set up the pixel texture grading for botrytis

1. Set up a New Variety, or edit an existing Variety.

2. Click the Texture grading parameters button to open the Texture grading
parameters window.

3. In Load Default Version, select Kiwifruit Botrytis from the drop-down list.

The Grading Attributes and Advanced Parameters default to the required settings.

4. Choose Texture Image Type - Infrared.

5. Click OK and then click Finish to save your changes.

6. If you have not already done so, create your Categories – Color, Blemish, Shape,
etc. and complete your standard Color mapping and Grade Grid set up to achieve
the color and blemish grading you require.

7. In the Grade Grid, add a Texture Category and select Fruit and Botrytis (you
may also add Stem for mapping the edges of the fruit to get better accuracy in
botrytis detection).

8. Capture or load your kiwifruit botrytis images and view them in the Color Maps
area.
Warning:
After changing any settings in the Texture Grading Parameters window, you must
always clear all of your loaded captured fruit images and capture or load them
again.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 199


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Botrytis (by classifying pixels), continued

9. On the Texture Color Maps tab, progressively map your good and bad images.
Select the appropriate characteristic for the image (e.g. Botrytis (for Botrytis
images) or Fruit (for good skin images) and then click on the image pixels to map
them. The cursor defaults to the correct cursor type (e.g. No Texture for Fruit, and
Texture for Botrytis).
Note: When mapping the botrytis you need to map the line of transition between
good skin and botrytis, not the actual botrytis.

Click and Learn both Fruit and Botrytis and review your results in the processed
fruit image and your grading in the Grade Grid, as you do when Color Mapping.

10. Review all your grading results for all the captured images, and refine your grading
criteria (i.e. cut-off points) against your Texture characteristics.

200 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Scale (by classifying pixels)

In Kiwifruit Scale mode you are classifying pixels, not whole images.

To set up the pixel texture grading for scale


1. Set up a New Variety, or edit an existing Variety.

2. Click the Texture grading parameters button to open the Texture grading
parameters window.

3. In Load Default Version, select Kiwifruit Scale from the drop-down list.

The Grading Attributes and Advanced Parameters default to the required settings.

4. Choose Texture Image Type - Color.

5. Click OK and then click Finish to save your changes.

6. If you have not already done so, create your Categories – Color, Blemish, Shape,
etc. and complete your standard Color mapping and Grade Grid set up to achieve
the color and blemish grading you require.

7. In the Grade Grid, add a Texture Category and select Fruit and User.

8. Capture or load your kiwifruit scale images and view them in the Color Maps area.
Warning:
After changing any settings in the Texture Grading Parameters window, you must
always clear all of your loaded captured fruit images and capture or load them
again.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 201


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Scale (by classifying pixels), continued

9. On the Texture Color Maps tab, zoom in on an image with scale. Select the User
(Scale) characteristic and click on a scale pixel.

Select the Fruit characteristic, and click on an example of good skin.

Click Learn.

10. You can expect that a lot of good light skin will also be mapped to Scale (User), as
per the picture following.

202 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Scale (by classifying pixels), continued

Click and Learn more Fruit (good skin) until only the scale is mapped:

Note: This will probably only require one or two User (Scale) seeds, but could
require many (i.e. up to 10 or 20) Fruit seeds.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 203


SECTION 7 – TEXTURE GRADING

Texture grading for Kiwifruit Scale (by classifying pixels), continued

11. Review all your grading results against your captured images and set your texture
grading cut-off points against your Texture characteristics:

To view the texture diagnostics


In the Images screen when Texture and Edge are selected, the Edge colors reflect the
color of the Texture characteristics in the grade grid (instead of the normal Magenta
color).

204 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


CHAPTER 11 – TEXTURE GRADING

To view the texture diagnostics, continued

Clicking on an image when Texture is selected pops up a dialog with the Texture
information for the image.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 205


INVISION V3.5 USER GUIDE

Section 8 – Monitoring and Managing Your


Processing

Overview
You can review comprehensive data about the produce that InVision analyzes in order to
monitor, investigate and refine your produce grading.

In this Section
Page
Viewing the System Status Screen ................................................................ 207
Viewing Captured Produce in the Images Screen ......................................... 209
Viewing Live Video ......................................................................................... 228
Viewing Information for Graded Produce (Info Screen) ................................. 230
Viewing Graphs in InVision............................................................................. 232
Working with Alarms ....................................................................................... 233
Viewing Log Files of InVision Data ................................................................. 242
Using the Diagnostics Menu ........................................................................... 243
Printing InVision Data ..................................................................................... 244
Exporting InVision Data .................................................................................. 244
Backing Up or Restoring InVision Data .......................................................... 245

206 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing the System Status Screen

The Status screen is used to monitor how the sorting machine is performing, and how
InVision is grading produce.
The information provided, along with feedback from operators, packers etc. is used to
determine whether or not changes are required to adjust the sorting parameters for the
currently Active Variety being run over the sorter.

2
1

Screen areas
Area Description and Troubleshooting
1 Status information area
The left side of the screen displays text with details about InVision. You can view this
for All Lanes on the sorting machine, or you can click on the tabs at the bottom of the
screen to view the Status for an individual lane.
The text displays the Variety, current conveyor speed, and current rotation speed. It
also summarizes the grading results for the lane(s) you are viewing. The grading
results are based on the grade values you have set up for that Variety.
Troubleshooting
• If a lane shows significantly different percentage for a grade, it may indicate a
problem with the grading on this lane (dirt on windows, camera or light fault, bad
settings of fruit limits). It may also be caused by different produce feeding to this
lane (recycled produce mostly return to the end lane, larger / smaller produce may
tend to fall on one side).
• To export the text as a text file select Export Data… from the InVision menu.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 207


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing the System Status Screen, continued

Area Description and Troubleshooting


2 Status graphics area
The right side of the screen displays three indicator bars. These bars provide a visual
overview of how well the sorting machine and cameras are capturing images of
produce.
• Processor Load – Displays percent of image time used for processing. This is
100% if InVision has just finished processing an image when the next image is
received. It is 200% if InVision is skipping every other image and is still processing
an image when the next image is received.
• Rotation – Displays average rotation of pieces of produce (a value of 1 for exactly
360 degrees).
• Number of Images per Fruit – Displays average number of images seen per piece
of produce.

Each indicator has 3 colored areas:


• Green – Good performance
• Yellow – Acceptable performance
• Red – Bad performance, not acceptable
The average value for the area’s performance is displayed with a thick line. The
minimum and maximum values for the area are shown with a thin line.
Troubleshooting
• To improve the performance for the areas, set the conveyor speed and rotation
speed on the sorting machine. The rotation indicator may be misleading if there are
many labels on the carriers that are being detected as produce.
• To reset the indicators, click Reset in the Toolbar. New values will display when
more produce is run.

208 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen

The Images screen displays all the images for each captured piece of produce.
Click on the Images button in the main toolbar, or select the Images item from the View
menu.

When is the Images screen useful?


This screen is essential for viewing and fine tuning your color mapping and grading.
Buttons and menu options enable you to investigate the decisions InVision made, and
make corrections to your color mapping and grading to achieve the desired grading result.
Use this screen to:
• show all information captured for a piece of produced (diameters, defects, the bands
used to calculate the grade, etc.
• see how InVision has analyzed and applied your grading rules against every produce
image captured or loaded.
• make decisions to adjust your color mapping, and change the rules set within the
Fruit Variety Information window, if necessary. For example if the stem and calyx are
not being correctly identified, then you can use the right-click menu fast keys to edit
your Variety setup and then review the results of your adjustments in this screen.

Viewing produce in the Images screen vs the “editors” (Variety and Offline
screens)
The editors in the Variety and Offline screens see the captured produce as a “big picture”
and manage individual pixels (points) in this picture. However, the Images screen
recognizes the individual images of the produce and can display specific properties for
these images (e.g. diameters, blobs, etc)
The Images screen can therefore help you better understand how InVision decided to
grade your produce based on the properties it saw.
While the Images screen is used to evaluate your mapping and grading, changes to the
color mapping and grading criteria can only be made in the Variety or Offline variety
editing screens.

The Images screen components


There are four screen components. They are described in more detail below.
• Image display (controlled by Toolbar button options)
• Left-click mouse information window (blobs / texture)
• Right-click mouse menu options
• Tab views at the bottom of the screen.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 209


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Image display (controlled by Toolbar button options)


InVision gives you at least one row of images for a single piece of produce as it rotates
under the vision camera/s. Each piece of produce is identified with a blue line of
information above it:

The number of fruit lines per piece of produce shown on the Images screen depends
upon your InVision system.
• On InVision 5000 systems, there will be only one row of images per piece. This
corresponds to the single top view that this system has of the produce.
• On InVision 7000 systems there will be a row of images from both top views
(incoming and outgoing), one after the other.
• On InVision 9000 systems, there will be three rows of images, corresponding to left,
top (incoming and outgoing) and right views for each piece of produce.
Further, camera synchronization (if in use) has an impact on the IR view display. (See
below.)

210 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Camera synchronization on CIR systems


For CIR systems, exactly how the IR view displays depends upon whether or not your
system is using synchronized Color and IR cameras.
• If cameras are NOT synchronized (as in the example above), the rows are repeated
in grey tones, showing the IR view of the piece of produce. This is because on an
unsynchronized system there are two sets of independent pictures for each piece of
produce – one set from each of the Color and IR cameras. Each set of pictures can
be different in size, and even the number of pictures for each piece of produce can
differ.
• If cameras ARE synchronized, only the one view of the rows is shown, and the
Color/IR button allows you to toggle between the two views. This is because on a
synchronized system, one picture contains both the color and IR information, but the
button enables you to choose your view.

In all modes and for all options, colored lines on the images indicate the data being
displayed. The colors and their meanings are explained in “Using the Images screen
Modes and Buttons or Menus” (Page 212) in this Section.
In any mode, if a problem causes an imaging error condition, then a solid box (in a color
used only for diagnostic purposes) is displayed.
Note that in all modes on this screen you can use the + and – keys to zoom in and out on
the image display area (i.e. make the images smaller or larger).

Left-click mouse information window (blobs / texture)


In the different modes, a normal mouse click on some image features (e.g. blobs or
texture) may display additional information. This is explained further in the relevant areas
in this Section.

Right-click mouse menu options


The mouse menu options provide fast access to many of the menu options provided at
the top of the screen, plus some additional access, viewing and editing options. These
options are explained in detail in “Using the Images screen Modes and Buttons or
Menus” (Page 212) in this Section.

Tab views
Tabs are located at the bottom of the Images screen.

The tabs allow you to select images from three different sources. Select either:
• Grading captured fruit, to display all the images currently captured or loaded for
your online Variety, as they are displayed in your Color Maps area.
• Offline captured fruit, to display all the images currently captured or loaded for your
Offline variety, as they are displayed in your Color Maps area.
• Engine captured fruit, to display images exactly as InVision captured them when
the sorter was running, based on the color mapping and grading criteria applied at the
time of capture. This tab only displays fruit captured on this computer (in a multi
computer system), while the Grading and Offline captured fruit tabs will also show
fruit captured on slave nodes or manually loaded captures. See Show Fruit Row
option in “Images or Skins Viewing Mode” (Page 214).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 211


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Using the Images screen Modes and Buttons or Menus


The buttons on the toolbar and the right-click menu options are organised into viewing
Modes.

Modes and Buttons

Images or Skins Normal or


Reduced Color Size/Shape/Blemish Viewing Modes
Viewing Mode
Viewing Mode

Note: Only the buttons appropriate for your system and relevant to your variety
parameters will be available, e.g. on systems with Color and IR synchronized cameras,
the Color/IR button allows you to toggle between the Color view and the IR view of the
images.

212 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Modes and Menu items


Right-click your mouse to display this menu. Menu options are described below in the
order they appear on the menu. Only items relevant to your system will be available.

Images or Skins Viewing Mode

Normal or
Reduced Color
Viewing Modes

Size/Shape/Blemish Viewing Modes

Additional options – see Additional Menu


Options in this section

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 213


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Images or Skins Viewing Mode

Only one of these modes can be selected at any time.


Note that you need to use the Images mode to view the Size and Shape data for the
produce.
Display the images of the produce. Images show the produce as a user
would have seen it if they had been standing to the side of the machine
watching the produce move left to right as it rotated down the conveyor.

or
Show Fruit
Images

Display the skin view created for the produce from the processing bands
(the areas used to process the produce colors). This is what you would see
if you peeled the skin from the bands, and flattened it out.

or
Show Skin

In this mode, you can also select the Spacing button to show a clearer view
of what the incoming and outgoing cameras have seen. (See the Spacing
button description in “Size/Shape/Blemish Viewing Mode (and Color
Overlays)” (Page 216) in this Section.)

Show Fruit Menu item only. This option is only available from the Engine captured
Row fruit tab.
Display the images as they were originally captured from the cameras, with
a black background replacing the camera picture background. This option is
mainly used for development or problem diagnosis.

214 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Normal (Full Color) or Reduced Color Mode

In the Images screen, only one of these modes can be selected at any time.
Select this mode to display full color images from the camera. This is the
same view as the Original Fruit Image in the Variety or Offline Color
Maps area.

or
Full Color

Display the reduced color images for this piece of produce. This is the
same view as the Processed Fruit Image in the Variety or Offline Color
Maps area).

or
Reduce All
Image

Machine Menu item only. This option is only available from the Engine captured
reduced fruit tab.
color Display the processed colors as InVision used them while grading the
produce. This view may be confusing because areas that InVision did not
need to analyse may have unpredictable colors. This option is mainly
used for development purposes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 215


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Size/Shape/Blemish Viewing Modes (and their Color Overlays)

Size/Shape/Blemish Viewing Modes

These viewing modes overlay images with border and line drawings to show the features
that InVision computed for the produce (size, blobs, outline, etc). All of these modes can
be activated at any time. Many options can be accessed from both a button and a right-
click menu item.

Edge outline colors and what they mean

Shows or hides the edge overlay displayed around the edge of the produce
images (Image mode only). This shows the border between the produce
and the conveyor. This mode can be used to check the accuracy of color
mapping between produce and conveyor, as well as investigating and
or diagnosing some of the edge imaging issues that InVision encountered (e.g.
Toggle touching or doubled produce, cut edges).
Show
Outline

Edge colors used (not including Texture colors) are:

Magenta Normal edge color.


Red Edge detection error (InVision could not calculate the
edge).
White Touching produce that was successfully split. See “More
about working with Doubled or Touching Produce”
(Page 156) in Section 5.
Blue Touching produce that could not be successfully split.
Green Doubled produce, i.e. more than one piece of produce on
the carrier. See “More about working with Doubled or
Touching Produce” in Section 5.

Grey The produce image is cut because it got to the edge of


the image. InVision will then try to approximate the
correct continuation of the edge.
Orange Image was ignored because it contains an ‘ignore color’
(e.g. sometimes used for sticker identification). See
“Grading using 'Ignore' Fruit Color Mode (for fruit
with labels)“ (Page 128) in Section 4.
Dark red Edge was detected as loose skin (if Onion Loose Skin is
turned on in Shape grading).

216 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Additional Texture colors:


If the Texture button is selected (only available if Texture Grading is on
and you are in the correct mode) the edge outline color is replaced with
the texture color that this image is classified as (i.e. Orange for good fruit,
Light Blue for texture).

Size diameter colors and what they mean


Diameter Selects which diameters to display when Size mode is selected.
Selection When Toggle Diameters is selected from the right-click mouse menu,
displays the diameters selected in this list. Use All to show or hide all
diameters.

See “Toggle Diameters” below for an explanation of the diameter line


colors.

Shows or hides the overlay display of size diameters on all images (not
available when viewing the Skin mode).
You can select which diameters will be displayed by right clicking on the
image, choosing the Diameter Selection sub menu and unchecking the
or items you wish to hide.
Toggle This allows you to see which diameter measurement is in the correct
Diameters orientation for your produce and to diagnose problems with sizing.

The yellow outline shows the filtered edge after size processing.

Colors used for the diameter display are:

Red Maximum diameter.


Green Minimum diameter.
Blue Perpendicular diameter (90º from the Maximum diameter).
Blue Curvature diameter; used to calculate various shape
green properties such as curved symmetry.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 217


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

White Horizontal diameter; with diameter parallel to the conveyor


motion.
Additional horizontal white lines display the longest
diameter, and the top and bottom lines used for measuring
box shape.
Black Vertical diameter; diameter perpendicular to conveyor
motion.
Yellow Stem diameter; diameter in stem direction (for onions only).
Cyan Equatorial diameter; 90º from stem (only available with
stem diameter).
Olive Trapezoid height (Olive) and Trapezoid width (Teal).

Can be viewed in conjunction with the Toggle Trapezoid


Teal Approximation option.

Used for Shape Grading.

Blob marker colors and what they mean


Shows or hides the blob marking display. This is useful for seeing how
InVision is identifying marks on produce as blobs.
All the blobs that are counted as defects, plus stem / calyx, are always
displayed. Other blobs will only display if Toggle All Blobs (Ctrl+B) is on.
or Note: Select Toggle All Blobs from the right-click mouse menu or press
Toggle Ctrl+B.
Blob
Markers

Complex example with Toggle All Blobs turned on


When Toggle All Blobs is on and Ignore Near Stem is set on in the Fruit
Variety Information window, the stem/calyx blobs display a box around
them to indicate the ‘near stem’ area. (The example below shows the near
stem blob, and the left-click Blob Information window.)

218 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Blob situated near stem/calyx (in the white box), and the Blob
Information window
As shown on the blue colored blob above, every blob marker has a:
• center - a cross placed at the center of the blob
• boundary line - a line that encloses the blob area
• blob marker color, to indicate which type of blob it is.

See “Section 6 – Blemish (or Blob) Grading” (Page 162) for additional
information on how the image display relates to the Blemish grading
parameter set up.

Colors and blob types are explained below. See also “Blemish Grading
Parameters tab options” (Page 64) in Section 3 for the setup of features
that relate to some of these colors.

Counted
Color Name Meaning as
Defect?
Magenta Blob A blemish. Yes
Magenta Blob This is the same as Blob above, but with Yes
(restored) additional information as to why it was
initially discounted, but then counted
again.
Dark pink Blob (many A blob from a ‘leopard’ fruit (a fruit with Yes
marks) many spots).
Yellow Too small Under-sized blob (mark) that falls below Yes
the minimum size cut-off set for blobs,
and will be counted as a spot when
grading on spot density. Always counted
in blob area / %
White Stem / Calyx Stem or calyx blob. No
Light Stem / Calyx Unsynchronized CIR systems only. No
grey (from other Identified as a stem or calyx blob
camera) because it was detected as such in the
corresponding view (Color / IR).
Mid grey Stem / Calyx Stem or calyx end of the fruit because No
(classification) the color it belongs to is stem color. (This
feature is now unavailable in the current
version.)
Green Cleared Blob was processed completely on this No
image, but when analyzed in conjunction
with other images, a better view of it was
found elsewhere.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 219


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Counted
Color Name Meaning as
Defect?
Dark Cleared as Blob was initially detected as a blemish, No
Green stem but was then rejected as being another
view of the stem.
Controlled by Concave stem tolerance
setting in Fruit Variety Information
window.
Sky blue Cleared Similar to another blob because the No
(slipping) produce may be slipping.
Dark grey Ignored Blob was ignored because it is an ‘ignore No
color’ (e.g. blue blobs are stickers, not
blemish).
Dark teal Unused Too far from band. No
Light blue Bad image Is an invalid image (double / touching). No
Dark blue Near stem Ignored because blob is close to stem or No
calyx.
Violet Isolated Blob ignored because of 'Ignore small No
isolated blobs' setting in Fruit Variety
Information window (e.g. a real mark
should be seen several times as the
produce rotates. A mark seen only once
is probably not a blemish, but an isolated
imaging problem).
Olive Ignored on Blob ignored because of ‘Use top view No
side view only for blemish” setting in Fruit Variety
Information window. (Useful for lemons
and kiwifruit on InVIsion 9000 systems
only.)
Coral Stone fruit Part of a crease on a stone fruit. No
crease

Toggle All When on, displays ALL blobs InVision identified on the images, including
Blobs the blobs that were discounted for various reasons. Use this option to check
that blobs have been accurately processed against the Variety setup.
When off, displays only the blobs that were used for grading.

Toggle All Blobs – Off Toggle All Blobs – On


Left-click on a blob to display its blob information (see “Blob Information
Display” (Page 222) in this Section).

(Blob colors are explained under above.)

220 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Toggle Changes the blob color from Magenta, if it has been identified as a
Show Blob Classified Blob (i.e. meets the Classified Blob Category criteria as set up in
Class- the Grade Grid). This enables quick identification of different Classified Blob
ification types (e.g. 1st classified blob type is Black, 2nd blob type is Light Blue, etc).
Left-click on a blob to display its classified blob data.

Toggle Shows blobs that were detected as part of a stone fruit’s normal crease
Stone Fruit (apricots, peaches, nectarines) and were therefore not counted as defects.
Crease This feature is only enabled if Fruit with crease (stone fruit) has been
selected in the Fruit Variety Information window Blemish tab.
Turn Toggle All Blobs on when using this option.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 221


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Blob information display


When the Blob button is selected in the Images screen, you can left-click on a blob
marker to view details about the blob.
Blemish (or Blob) grading is explained fully in Section 6.

Section 1 – Basic Blob Information

Section 2 – Blob Classification Information

Section 3 – Additional Detailed Information

Section 1 – Basic Blob Information


This shows the Blob type (e.g. Blob), the size of the blob, the blob area in mm, % and
pixels and the size category of this specific blob (for use when grading by blob counts)
and, in parentheses, the measure that determines the blob’s size category.
Section 2 – Blob Classification Information
When using ‘classified blobs’ these properties are used to classify blobs into specific
types. (See “Classified Blobs” (Page 184) in “Set up your Grade Map for Blemish
Grading” in Section 6.)
Section 3 – Additional Detailed Information
This section will be displayed only if Toggle All Blobs in turned on.
Most of this information is displayed for development purposes. However some of it may
be useful for adjusting blob grading parameters. Amongst other information, this section
provides the blob reference index number (e.g. 16); the stem angle (e.g. 67.54) and the
stem "partner" of this blob (if the blob was a calyx), e.g. a blob with Blob Index Reference
3 on this fruit is identified as being the stem on this image.

222 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Some useful tips:


• If stem angle = 0 and stem partner = 0 this blob was not considered as stem (or
calyx) because it does not match the stem requirements in blob grading parameters
(wrong size or elongation).
• Similar miss is the most similar blob to this one that is not detected as the same
physical mark on the produce. Least similar hit is the least similar blob that is
detected as the same mark on the produce. These numbers may be used as a hint to
adjusting the similarity threshold in the Fruit Variety Information window.

Profile tracking lines and crosses and what they mean


Toggle Menu item only. Shows colored lines and crosses on each image to display
Profiles longitudinal and latitudinal tracking positions (as on the world globe). This
shows the produce rotation from all available views (top, side, bottom, etc).
This is useful to determine if produce is rotating smoothly, and to
understand and troubleshoot blob tracking.

Any mark on each image should be consistently located on every image in


relation to the colored lines and crosses. This is demonstrated in the
example above in the top and middle images (left and top views), where
(within the white boarder we have used to highlight this example) the mark
consistently remains to the right of the red line, between the light blue and
white crosses.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 223


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Bump and Trapezoid colors for Shape grading and what they mean
Toggle Display bumps detected (for lemon botrytis grading) on the fruit when a
Bumps in Smoothness Shape category is used (see “Grading by Shape” (Page
Outline 145) in Section 5). This may help in diagnosing smoothness grading.
Move the mouse pointer over the bumps to display the bump details.

Bump colors are:


Yellow Counted as bumps on the surface. These marks will
decrease the smoothness value.
Magenta Ignored because of size/height/elongation etc. Display the
bump details to see why it has been ignored.
White Ignored because it is the stem/calyx. This feature is only
enabled if Fruit has elongated stem has been selected in
the Fruit Variety Information window.

Toggle Shows an approximation of the dimensions used to analyze box shaped


Trapezoid fruit. This is mainly used for Shape Grading of Bell Peppers.
Approx- Diameters:
imation • Trapezoid shoulder - Width of the widest size of the box
• Trapezoid height - Height of the box (should be the stem diameter of
peppers)
Shape:
• Trapezoid angle - Angle between the 2 sides of the box (0 to 180). If the
sides are parallel the angle is 180. As the box becomes ‘sharper’
(rectangular) this number goes lower.

224 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Texture outline color and what it means


When Edges are also turned on with this option, it shows the texture results
against an image by outlining the produce in the appropriate Texture
Characteristic color. (The color is determined by the processed image in
the Color Map.)
or For example, if characteristics for an Orange are colored like this:
Toggle
Texture

then images with crease will have blue outlines; rough skin will have yellow
outlines; and produce with no texture problems will have orange outlines.
Left-click on an image to show its texture data and Texture type:

Bands area overlay and Spacing option

Shows or hides the band area that is used for creating the skin (not
available when viewing the Skin mode).

or
Toggle
Bands

The dotted line shows a rectangle to indicate the band area that is displayed
in skin mode, while the solid line shows the actual area within the band that
is used for processing.

The band area is the best place to select pixels from when you are color
mapping.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 225


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Adds or removes artificial spacing between images. When in-line cameras


are used (e.g. there are two top cameras), extra space is inserted between
the last image from one camera, and the first image from the next camera.
This helps to identify the transition between cameras.
or
Toggle
Spacing

Processing area option


Toggle Menu item only. Display the area that InVision has determined it needs to
Show process to calculate a grade. If the entire image is purple, then blemish
Processing grading is on. If only the band is purple, then only color grading is on. Used
Area mainly for development purposes.

Color/IR Toggle option


Display the Color or IR view of the images if your system has synchronized
cameras.

or
Toggle IR

Additional Images screen Menu Options


These options are available from the right-click menu or from the Main menu above the
Toolbar under Diagnostics > Fruit Image.

Save The first option allows useful data sets to be saved for a produce image:
• Fruit sequence - save all images selected as a sequence of bmp files
with an attached txt (text) file.
The remaining options are for development use:
• Export diameters - save all diameters for the selected fruit as a txt file.
• Export blobs - save a set of blob information for the selected fruit as a
csv (comma separated values) file.

226 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Captured Produce in the Images Screen, continued

Graph Right-click the mouse on an image and then select the required Graph
option to display the data for that image graphically.
• Draw Radii Graph - draw a graph of "radius against angle" for the
selected image. Use this graph to check radii filter quality.
• Draw Diameter Graph - draw a graph of all diameters for this piece of
produce against the image diameters. Use this graph to check for optical
distortions.
• Draw Bump Radii Graph – similar to Radii Graph but with information
relating to bump detection. Use this graph to check for botrytis bumps.

To print the graph, select Print from the InVision menu (or Ctrl+P).
To exit this option, click on any button in the Toolbar.

Zoom In Use these options, or the + and – short-cut keys, to zoom in and out on the
Zoom Out images.

Special Defaults to normal view. Other options are unavailable. Compac


Views development tools only.

Toggle Unavailable option. Compac development tool only.


Image Diags

Edit Fruit Opens the Fruit Variety Information window for the Variety. This is a
Variety useful shortcut when making changes to parameters to test color mapping
and grading. (If you are in the Offline captured fruit tab, then the Variety
Information window for your Offline variety opens.)

Show this Opens the Variety or Offline screen (depending upon which tab you are in)
Fruit in with the captured fruit opened in the Color Maps area and displayed in the
Grading Grade Grid area. This is a useful shortcut when refining your color mapping
Window and grading after viewing images in the Images screen.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 227


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Live Video

The three default options (Dual, Centers and Reduced) are used to troubleshoot
instances when InVision cannot capture images correctly.

Use the Toolbar buttons or the right-click menu items to change how you are viewing
the Live Video display. (See “Toolbar buttons” below.)

Click on the Lane tabs at the bottom of the screen to view the produce images for an
individual lane.

Use the spacebar on your keyboard to pause and resume the video streaming.

Use the + and – keys on the keyboard or the right-click mouse menu items to Zoom in
and out on the images.

Use the Centers view to check if produce centers were set correctly in the Fruit Limit
screen. The crosses should be approximately in the middle of the produce (or the empty
carriers).

Use the Dual view (use Normal or Reduced mode buttons) for a basic check of color
mapping. If produce is mapped to conveyor or conveyor is mapped to produce you should
be able to see it.

228 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Live Video, continued

Toolbar buttons
Option Description
Adds or removes an extra display of the normal live video for each
produce row. When the color mode is set to Reduced (see below),
the extra display of the video feed shows how InVision interprets
the images using its Color Map.
Adds or removes an overlay display (pink cross) indicating the
predicted produce centers on the live images.
If the centers are not always at the center of carriers or pieces of
produce, the Fruit Limits need to be adjusted. Centers do not
display when the sorter is stopped.
Example of fruit not centered:

Displays images as captured by the camera.

Displays reduced color images showing how InVision's color map


applies.

Note: If, in the Dual mode, images display in the Normal view but
not in the Reduced view, then the color map is bad.
Toggles to display the images in either Color or IR. This button is
only available if your system is using Color and IR cameras that
are synchronized.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 229


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Information for Graded Produce (Info Screen)

For a summary of the Info (Information) screen toolbar options and the functions
described here, see Info Screen (Page 72) in Section 3.

You can view the produce grading and processing data for a lane from the Info screen. A
scroll bar provides access to all the lanes tabs and the Captured Fruit and Histogram
tabs.

When you open the Info screen, the grid displays the data that was last selected. The
grid is empty (blank) if no data columns are selected, or if all data columns are cleared by
clicking the Hide All button

To view data for a lane:


Do any or all of the following to select and view lane data.
• Select a saved diagnostic set of columns from the Diag drop-down list.
• Add a related group of columns from the Group drop-down list.
• Add individual columns to the display by selecting them from the right-click menu.

To re-order or re-size columns:


• Drag and drop columns into the order you want.
• Drag the column boundaries to resize them.

To keep or hide columns:


When you select groups from the drop-down list, it only adds the column set temporarily.
A green background for each column indicates the temporary status. When the column
set is saved, or a different lane tab is selected, or another column group is added, the
temporary columns will be automatically removed.
You can:
• retain any of the columns added in a group, by right-clicking in a column header and
selecting Keep from the menu, or
• remove any of the columns from the display, by selecting Hide.

About the histogram tab:


The Histogram tab is only used to collect data for histograms. The histogram data is best
viewed from the Variety or Offline windows by right clicking on a Characteristic and
selecting Show Histogram from the menu. See “Using the Histogram data to fine-
tune cut-off point values" (Page 100) in Section 4.

230 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Information for Graded Produce (Info Screen), continued

To view the Information Graphs


You can select one or more Information columns and view a graph comparing their data.
Select the columns you want to view, then right click on the image and select:

Graph - Displays a graph of this column. X axis is line number, y axis is the value.

Graph by Lane - Displays a bar graph that shows how the data properties change by
lane.
• Graph by Lane History - Displays how each piece of produce is analyzed in each
lane.
To print the graph, select Print from the InVision menu.
See also “Viewing Graphs in InVision” (Page 232) in this Section

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 231


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Graphs in InVision

You can access Graph views of data from the following areas.

Variety or Offline Right-click on a Category and select Show histogram to graph


variety screens the Category. The Histogram graph helps you set cut-off points
for that category.
See “Using the Histogram Data to fine-tune cut-off point
values” (Page 100) in “Guidelines for Grading” in Section 4.
Images screen Right-click on any produce image and select Graph. You can
view a radii graph, which displays a graph based on variations in
the radius of the produce. Or, you can view a diameter graph,
which shows a comparison of all the diameters for one piece of
produce.
See “Additional Images Screen Menu Options” (Page 226) in
“Viewing Captured Produce in the Images Screen” in this
Section.
Information (Info) Select one or more Information columns and view a graph
screen comparing their data.
See “To view the Information Graphs” (Page 231) in “Viewing
Information for Graded Produce (Info Screen)" in this Section.
Uniformity Graphs Requires Technician level access. Displays Uniformity graphs
(Technician menu) used for camera calibration.

To close a graph, select any button on the toolbar to return to another screen.

Changing a graph’s appearance


Right click on any displayed graph to customise its view.
One of two Control Properties windows will display - either the Olectra Chart 2D (pictured
below) or the Olectra Chart 3D. These relate to the 2D and 3D graph tabs at the bottom
of a graphs screen.

InVision automatically opens the correct tab when asked to display a graph. The 3D
graph is currently used to show uniformity calibration. This tab can only show one surface
at a time and you can use ‘n’ and ‘p’ to move to the next or previous graphs.

232 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Working with Alarms

When problems or system errors are encountered while InVision is grading produce,
alarms are generated and displayed in the InVision Alarms screen. The Alarm button
flashes on the Main Toolbar to provide warning of an error condition.
Alarms can indicate a problem in the InVision software, the cameras, the Sizer software,
or on the sorting machine. Some alarm conditions do not seriously affect InVision’s
grading of produce.

This topic explains:


 Displaying Alarms
 Activating or Deactivating Alarms
 Responding to Alarms
 Alarm Types and their Solutions
 Printing or Exporting the Data

Displaying Alarms
When an event occurs that indicates a problem, InVision triggers an alarm. When at least
one alarm is triggered on at least one Node (PC), the Alarm buttons on both the Master
Node and on the ‘bad’ Node will flash. Some very important alarms will also pop up a
message box in the middle of the computer screen. When this occurs, click the Alarms
button to display the Alarms screen.
By default only alarms that are currently triggered will display. Click Show All to display
all the possible alarm conditions.
For each alarm condition, the screen shows the total number of times the error condition
occurred (the "Count") and the time of the last occurrence (“Last Instance”). Alarms that
need a response are displayed in red.
The Alarm window also gives a percentage value for every alarm (Rate %). This is the
percentage of alarm events out of the number of events that would normally occur. For
example, missing 1 vertical reading every second will give a value of 2% since vertical
reading occur 50 times per second. An alarm is triggered if the alarm event frequency (the
Count) is above the Alarm Frequency cut point setting (the Allowed Rate %).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 233


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Working with Alarms, continued

Activating or Deactivating Alarms


You can set each InVision alarm condition to be On or Off separately by checking or
unchecking the "On" checkbox.
When an alarm is off, the Alarm button does not flash if the alarm occurs. The alarm is
still recorded and can be viewed in the Alarms screen by selecting Show All.

Responding To Alarms
Alarm conditions displayed in red must be responded to. Alarms can be:
• Acknowledged
This stops the alarm button flashing and changes the red alarm text to black.
You should then investigate why the alarm occurred to prevent it occurring again.
For some alarms, you can increase the allowed rate for the alarm if you are confident
it is not affecting grading performance. Check this with your Compac Technician.
• Cleared
This removes all alarm information from the display.
Clearing alarms will both Acknowledge all pending alarms, and reset the counters
for all alarms shown.
Clearing an alarm does not affect the alarm settings.

Note that turning an alarm off or merely Acknowledging or Clearing the alarm does not
resolve the problem. See the Alarm Types and their Solutions for recommended
actions for each alarm.

Alarm Types and their Solutions

Checking communication between InVision and Sizer


For some of the alarm types below, the solution includes checking that the InVision
system is communicating correctly with the Sizer system. Several things can cause
communication problems between InVision and Sizer.
Check that:
• the Sizer PC is on and the Sizer software is operating.
• the 485 cable connecting the Sizer and the InVision Master Node (PC) is connected
and does not have any cable problems or interference.
• both the Sizer and InVision software are correctly configured to communicate with
each other.

Message Pop Ups


For some of the alarm types below a Pop Up message displays in the middle of the
screen the first time the alarm is triggered. This indicates that the error condition requires
immediate action. Alarms with Pop Ups are identified in the table below.

234 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Working with Alarms, continued

Alarm descriptions and solutions


Alarms are listed in this table alphabetically as opposed to screen display order.

Alarm Name Rate Description Solution


ACC failed to 0% Indicates that for a long time (10 Turn ACC on. If it is already on,
keep target in minutes) ACC values are at least check for other ACC alarms
desired 15 levels out of goal. (saturation). Check camera gains - if
brightness for they are very high (200) or low (10)
long time. Check then ACC can’t get to the level
if ACC is on or InVision needs.
other alarms
ACC ROI error 0% ACC ROI for at least one camera Set ACC ROI correctly.
and brightness level is in an
unreasonable position
ACC saturation 0% An ACC error. Occurs when ACC If this alarm is not accompanied with
changes gain (one of them) to the one of the previous alarms, it
maximum or minimum available. It indicates that the original camera
is recommended that this alarm is settings for this brightness were too
On if ACC is used. close to saturation levels. Adjust the
brightness settings.
Attached 0% There is a mismatch between the Check that you have the correct
camera(s) not database and what InVision cameras plugged into this node and
found in detects as connected to this PC. that it is configured correctly (e.g.
database For example: too many cameras or InVision is expecting IR cameras if
cameras of the wrong type you have them plugged in). Restart
(color/IR) InVision.
Camera color 0% InVision has not recognized the This is probably a new type of
matching error color settings of some cameras in camera, and upgrading InVision
the system. should resolve this problem.
Contact your Compac technician.
Pops up a message.
Camera control 0% There has been an error in camera 1) Check the camera status.
failure communications. InVision is not On the correct node, select menu
receiving any communication from item Help > About and look at the
at least one camera. camera list.
Online means there is no problem.
Pops up a message. Offline means the camera is working
but not providing pictures, so it may
and be faulty or images are just not being
received.
Fake Physical Camera means it is
not recognised at all.

Camera sync 0% InVision has detected a camera but 2) Check the lights on the camera.
failure is not receiving any images from it. If the lights are green (for power on)
and orange flashing fast at a
Pops up a message. constant rate (for currently sending
pictures) the camera is working.
If the green light is off, then the
problem is either the power supply to

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 235


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


the camera (the round plug) or a
faulty camera. Note that if nothing is
connected to the round plug, then
this is an older camera that receives
its power through the digital flat
connector.
If the green light is on but the
orange light is flashing fast for a
short burst every few seconds or
is completely off, then the problem
is in the digital (firewire)
communication system, or a
synchronisation problem, or a fault in
the camera.

3) Check all cables and


connections.
If you still cannot identify and rectify
the problem, contact your Compac
Technician.
Change Fruit 0% An error when changing fruit Make sure that there is a match for
Variety Error variety. This can be caused by the Sizer variety in InVision.
either trying to change fruit variety Reapply the changes to resolve any
in Sizer a variety that does not possible master/slave node
have a match within InVision, or miscommunications.
changing a fruit variety on master Load the correct Fruit Variety in both
InVision computer and causing an InVision and Sizer. Check that the
error on at least 1 slave computer. correct Variety is loaded on all PCs.
This alarm can be turned off if you
are not using this feature.
Database Error 0% An error while accessing a Contact your Compac Technician.
database.
Exceptions 2% Internal error in the software. Restart InVision software when
InVision has recovered. convenient and contact your Compac
Technician.
Excess touching 5% Many pieces of produce are seen Check if this has been caused by a
or double images as doubles or touching. Blemish mapping problem, or bad centers
grading accuracy will be reduced. calibration or genuine double /
touching produce.
Speeding up the machine might
reduce doubles.
If there are genuine touching /
doubles and there is no solution to
resolving them, you may turn alarm
off.
Firewire Missed 1% InVision could not get the image Contact your Compac Technician.
Image from the camera in time.
Forced Restart 0% InVision has triggered a restart Contact your Compac Technician.
command.
Fruit Grading 0% InVision has encountered an InVision will attempt to recover.
Error, out of fruit internal error, probably because it Restart InVision when convenient
storage is under a heavy processing load. and contact your Compac
Technician.
Pops up a message.

236 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


Fruit grading not 0.1% Sometimes a fruit has too many Higher rates are usually caused by
finished features on it to be able to be too much processing.
completely analyzed before it could Try and reduce the number of
be assigned a grade. This alarm blemishes detected on each fruit and
warns about the rate that this check that the fruit<->conveyor
happening. InVision will still assign outline is smooth and clean as
the best grade it can to the fruit, possible.
even if it couldn’t finish, so low
rates (<0.1%) are acceptable.
Fruit grading not 0.1% Sometimes InVision can be too Very low rates (<0.1%) are
started busy to even get a chance to look acceptable on machines that are
at a fruit. This alarm warns about doing a lot of processing. Higher
the rate that this happening. rates are usually caused by too
much processing.
Try and reduce the number of
blemishes detected on each fruit and
check that the fruit<->conveyor
outline is smooth and clean as
possible.
Fruit not 0% If InVision failed to assign a fruit Should be coupled with another Fruit
assigned with any grade at all because it was too Grading alarm. Resolving that alarm
grade busy you will see this alarm. should resolve this one.
Fruit row 0% There is an error in the database Contact your Compac Technician.
duplication in and a particular view has been For Technicians, the
database duplicated (e.g. two left views on a VisionConfigWizard will need to be
lane. run.

Pops up a message.

FruitRow images 0% Indicates that one camera of a Check the camera synchronisation
dropped synchronized pair missed a picture hardware and/or the camera
and therefore the image from the connection to the computer.
other camera cannot be used.
Incompatible 0% InVision detected a hardware Contact your Compac Technician.
hardware device (probably a camera) that it
configuration, doesn’t recognize.
please contact
Compac Service
Internal Error 0% An error in the program. Contact your Compac Technician.
IQS offset 3% Potential error between IQS head Check the sensor is operating
calibration or sensor and InVision. The alarm correctly and use the methods
problem may be triggered incorrectly if IQS described in the documentation to
or tapper is configured on the check that the sensor/IQS offset is
machine but not in use. Will also correct.
be triggered when odd fruit are
jumping cups or the tapper is
misfiring.
IQS unit grade 0% InVision received an error Check the IQS system.
error message from IQS

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 237


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


Light levels drift 0% An ACC error. When the master To fix this, the light tubes may need
gain has drifted ±25 levels from the replacement, the camera window (or
default levels. This indicates a slow the patches for monitoring) may
change in light level. need cleaning or other areas of
lighting will need examining.
Note: This may also happen in
normal operation if temperature
changes at the site are very high. If
this is the case, this alarm may be
turned off.
Light levels jump 0% An ACC error. Occurs when the This may indicate a camera or
monitored values from an ROI lighting fault, or dirt (or an object)
increase more then ±50 levels. It is covering the light monitoring areas.
recommended that this alarm is on
if ACC is used.
Low disk space 0% Your hard disk drive is getting too You need to free up some disk
detected full. space. If you are confident doing so,
delete any unwanted files on this PC.
Otherwise contact your Compac
Technician.
Making space on the disk is not
urgent, and you can keep on grading
until disk space is freed up.
Technicians – you can set the
amount of free space required by
changing
MinFreeDiskSpaceRequirementForV
isionGB in vision.ini.
Mismatch in 0% Indicates that vision detected Re-run dimension calibration on the
dimension data, unreasonable dimension calibration problem lane.
please run
Calibrate Pops up a message.
Physical
Dimension
Missed ACC 8% Error in reading images for ACC. Check the ACC setting in the Iris
image transfer Setting Window.
Missed Bus 0% There was a problem starting up Try restarting InVision. Reinstall the
Reset the firewire bus. Probably due to a firewire driver. Check the firewire
mismatch between the InVision camera connections.
software and the firewire driver.
Missed IQS grade 0% InVision did not receive grade Check the IQS units and
information from one IQS sensor. communication with IQS. This alarm
will occur constantly if only some
lanes have IQS; in that case, it does
not mean that there is a problem.
Important:
This alarm should be disabled if you
are using a Sinclair Tapper (or any
other "sensor" device).
Missed multiple 0% InVision did not receive grade Check the IQS units and
IQS grades information from more than one communication with IQS. This alarm
IQS sensor. will occur constantly if only some
lanes have IQS; in that case, it does
not mean that there is a problem.
Important:
This alarm should be disabled if you
are using a Sinclair Tapper (or any
other "sensor" device).

238 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


Missed Multiple 1% Several images from a camera Check camera looms (connection
Process Vertical were not processed. may need to be tightened) and
Blank camera power (is it consistent?). If
the problem persists, call Compac.
Missed Multiple 1% Several images from a camera Check camera looms (connection
Receive Vertical were missed. may need to be tightened) and
Blank camera power (is it consistent?). If
the problem persists, call Compac.
Missed Multiple 0% InVision did not receive grade Check the sensors as noted, their
Sensor Grade information from more than one connections and power. Check the
sensor. serial diagnostic screen to see if you
are receiving messages.
Missed Process 1% Several rod messages were Sizer sends rod messages to
Multiple Rods received, but lost before InVision. Check communication
processing. between InVision and Sizer (see
Checking Communication above).
Missed Process 3% A single rod message was Sizer sends rod messages to
Rod Pulse received, but lost before InVision. Check communication
processing. between InVision and Sizer (see
Note: above).
Missed Process 3% A single image from a camera was Check camera looms (connection
Vertical Blank not processed. may need to be tightened) and
camera power (is it consistent?). If
the problem persists, contact your
Compac Technician.
Missed Receive 1% Several rod messages were lost. Sizer sends rod messages to
Multiple Rods InVision. Check communication
between InVision and Sizer (see
Checking Communication above).
Note that resetting the sizer while
InVision is running will trigger this
alarm.
Missed Receive 3% A single rod message was lost. Sizer sends rod messages to
Rod Pulse InVision. Check communication
between InVision and Sizer (see
Checking Communication above).
Note whether the problem exists on
all nodes (PCs), or just on one node.
Missed Receive 3% A single image from a camera was Check camera looms (connection
Vertical Blank missed. may need to be tightened) and
camera power (is it consistent?). If
the problem persists, call Compac.
Missed Sensor 0% InVision did not receive grade Check the sensor, its connections
Grade information from one sensor. and power. Check the serial
diagnostic screen to see if you are
receiving messages.
Multiple timeouts 1% One of visions working units Check that InVision is receiving
in template (threads) did not get woken up images from all of its cameras.
processing after a longer than expected period
thread of time.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 239


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


Network Error 0% Error in communication between Check network cables and
master vision computer and slave connections.
computers. Network errors can Note:
sometimes be fixed automatically Network problems can occur when
by the program. people try to connect a Compac
computer to a non-Compac
computer network. DO NOT DO THIS
without consulting a Compac
Technician.
Offset calibration 3% Potential error in offset calibration Check all views on the problem
problem between views. This alarm can node, both by capture, or by looking
also be triggered by: at the Live Video screen.
• a faulty camera If there is a real problem, then you
• ACC or dynamic uniformity will need to recalibrate offset.
blanking a camera’s picture If there isn’t a problem, you may
• very dark produce, when there is want to turn the alarm off.
no fault, but the produce is not
visible to the color cameras
• the occasional piece of produce
jumping cups or falling off the
machine in the viewing area
• stickers on the conveyor.
Processor over 5% InVision did not finish processing InVision will still work if this alarm is
run the current image before the next occurring as long as the CPU Load
one arrived. InVision handles this in the Status screen is less than
by ignoring the new image and 200%. However, you may find that
continuing to process the current the grading performance is reduced.
image until it is finished. Running You can set very high cut-offs for this
the sorter at high speed with a alarm if it occurs frequently and
large amount of produce causes grading performance is not affected.
this alarm. Some processor
overruns are to be expected on
machines that do a lot of
processing. It will not affect your
overall grading performance.
Rod Over 1% InVision processes each rod (cup Check that you are getting
Process with or without fruit). If processing reasonable rod information from
one of these rods takes too long sizer.
you will see a rod over process Check that you are getting images
alarm. from all the cameras.
Some versions of InVision are
triggering this alarm incorrectly. If
there is no actual problem you may
disable this alarm.
Serial 1% An error on the communication Is the problem on all nodes or just on
communications channel between Sizer and one? Check communication between
error InVision. This alarm usually InVision and Sizer. (See Checking
indicates a fault in the Communication above).
communication cable.
Sizer Offline 0% The InVision computer is not Check the Status Bar - does it
receiving any messages from the display a status of "Off Line''? If not,
Compac Sizer program. This alarm the problem is already fixed, and you
will often occur when InVision can Acknowledge the alarm. Check
starts up. communication between InVision
and Sizer (see Checking
Communication above).

240 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Alarm Name Rate Description Solution


Timeout in 3% One of InVision's working units Check that InVision is receiving
template (threads) did not get woken up images from all of its cameras.
processing after a longer than expected period
thread of time.
Too many 0% There are more than 2 cameras Connect the cameras correctly.
cameras connected to a single firewire “A” If necessary, contact your Compac
connected to a bus, or more than 4 connected to a Technician.
firewire bus firewire “B” bus.

Pops up a message.

Using extra 0% InVision is doing additional You will need to replace the camera
processing for processing to match the color that is causing the problem.
camera matching response from some cameras in This alarm can be turned off to stop
the system. InVision from constantly reporting it
while you wait for the correct camera
replacement.
Contact your Compac Technician.

Printing or Exporting the Data


You can print or export the displayed data from the InVision menu (see Page 244).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 241


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Viewing Log Files of InVision Data

The InVision database includes log files of InVision processing and operating data. These
can be used for diagnostic purposes if necessary.
There are two ways to view a log file. You can use the InVision menu option, or you can
open it from the InVision\Node<n>\Logs directory using Windows Explorer.

To open a log file from InVision


From the InVision menu, select Open Log File.

Highlight the required log and click Open to view the log in Notepad.
If required, use the Notepad File menu to print or save a copy of the file.

242 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Using the Diagnostics Menu

The Diagnostics menu provides functionality corresponding to several diagnostics


windows. You must be in the correct window before the menu items are available,
For example the Running Live Video diagnostic menu items are available when the
Video window is open:

Diagnostic functionality requires a high user access level.

To run Diagnostic options


With the appropriate window open, select Diagnostics from the Main Menu.

From the drop-down menu, choose the Diagnostics option required.

Function Description
Clear Errors Log Clears the Error details from the Alerts screen. This is a
Technician level function only.
Clear Max Clears minimum and maximum values throughout the InVision
Timers system.
Clear Fruit Clears the details from the Fruit Lane tab of the Information
Information screen.
Running Live Provides menu access to options available in the right-click menu
Video in the Video window.
Fruit Image Provides access to and specifies some functionality for the
Images window.
Update Logging Runs an update for all InVision logs.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 243


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Printing InVision Data


You can print data from some InVision screens.
Note that the Print function only prints information from the tab that is currently selected
at the bottom of a screen. For example, in the Info screen, it will only print data for the tab
that you are currently viewing, not for the other tabs.

To print InVision screen data


Open the screen (and tab) containing the data to be printed.
From the InVision menu, select Print. Select a printer and click OK.
Note: While the Print Preview and Print functions operate correctly, Print Setup does not
correctly change from Portrait to Landscape. Use the Printer Properties in the Print
function to set the paper orientation.

Exporting InVision Data


You can export data from most InVision screen as a file. You can only save data that is
displayed on the following screens:
• Status
• Grading
• Alarms
• Offline
• Information
• Diagnostics

Note that the Export function only exports data from the tab currently displayed. For
example, in the Status screen, it will only export data for the Lane tab that you have
selected, not for all Lane tabs.
Data is exported using one of two file types:
• CSV = (Comma Separated Value). Used when exporting grid data, for import into
programs such as Microsoft Excel.
• TXT = (Text). Used for other data types being exported.

To export InVision screen data


Open the screen containing the data to be exported.
From the InVision menu, select Export Data.
In the Save As window, browse to a suitable location to store the file.
Enter a file name. (The appropriate file type is allocated by default.)
Click Save.

244 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


SECTION 8 – VIEWING AND MONITORING YOUR PROCESSING

Backing Up or Restoring InVision Data

Compac’s backup software saves the InVision and Sizer data and settings for your
installation. If you have problems with your installation, you can restore the backup
version.
Note that to create a backup of InVision, the InVision software must be shut down.
When you exit InVision, the system prompts you to back up if your current back up is out
of date.
Backup and Restore procedures are provided in a separate document “Operator
Procedures - Start of Day, Backup/Restore and Trouble-shooting”. If you do not
have this document, please contact your local Compac Technician or Compac Service.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 245


INVISION V3.5 USER GUIDE

Appendix A – Tutorials

Overview
This Appendix provides practical experience in creating and testing a Variety,
and using Blemish and Texture grading features.
If the sample images we ask you to load are not available on your InVision
system, please contact your Compac Technician or the Compac Help Desk.

In this Appendix
Page
Tutorial 1: Create a Simple Two Color Variety ........................................................ 247
Part 1 - Create a Variety and a Simple Color Map ................................................... 248
Part 2 - Capture Fruit and Set Up the Grade Grid .................................................... 261
Part 3 - Run More Captures and Fine Tune the Grading ......................................... 267
Tutorial 2: Create a More Complex 3 Color Variety (and a Color Combination) .. 273
Part 1 - Review the Grading ..................................................................................... 275
Part 2 - Change the Color Mapping .......................................................................... 278
Part 3 - Change the Grade Grid Cut-off Points ........................................................ 287
Tutorial 3: Grade Apples for Blemish ....................................................................... 296
Part 1 - Set up good Color Mapping for the Variety ................................................. 298
Part 2 - Review the results on more captured images (with blemish) ...................... 301
Part 3 - Try grading on a “Bad” Fruit Color characteristic ........................................ 304
Part 4 - Create a Defect Color to grade on............................................................... 307
Part 5 - Review the Good Skin map and adjust if necessary ................................... 308
Part 6 - Map Blobs and No Blobs on the fruit captures ............................................ 311
Part 7 - Use Images view to check Blob Tracking Parameters ................................ 321
Part 8 - Set Grade Cut-off Point values and check grading results.......................... 325
Part 9 - Add IR color for “really bad” blobs ............................................................... 326
Part 10 - Set IRBad Cut-off Point values to achieve final grading result .................. 330

246 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Tutorial 1: Create a Simple Two Color Variety

This Tutorial is in three parts:


 Part 1 - Create a Variety and a Simple Color Map
 Part 2 - Capture Fruit and Set Up the Grade Grid
 Part 3 - Run More Captures and Fine Tune the Grading

You may wish to read Section 1 (Page 6) and Section 2 (Page 25) in this User Guide, as
background to completing Part 1.
You could also read "Using Captured Images to Refine Grading" (Page 109) in Section
4, as background to completing Part 2.

Before you begin


Arrange access to the InVision computer and log on using the "setup" password (see
"Changing Security Access Levels" (Page 18) in Section 1).
We recommend that you work in the "Offline" variety screen.
Note however that our example pictures show the online "Variety" screen, which has a
white grade grid area, not blue. (You will only be able to work in the Variety screen if you
are not sorting produce and the sorter is available for training purposes.)

Offline Variety Screen Online Variety Screen

Some tips for completing the tutorials


Please use the images provided by Compac to complete the color mapping steps
in this tutorial. We will tell you how to load the images while completing the
tutorial.
(Note that if you use your own sample fruit instead of our images you will not be able to
follow the tutorial steps exactly.)
This tutorial grades Braeburn apples, with varying shades of red, yellow and green.
Please note that this is not a recommendation on how to set up apple grading. It is also
not a problem if your packhouse grades produce other than apples. The tutorial
introduces InVision concepts and illustrates just a few of the many ways that InVision
grading can be achieved.
The images we have provided might require some patience to map. This is intentional,
and realistically illustrates color mapping challenges that can be encountered.
When clicking on colors during the tutorial, try to locate the same fruit image that we have
clicked on, and click in exactly the same spot. This will help you achieve results that are
similar to ours and make the tutorial steps easier to follow. You will probably not be able
to achieve exactly the same results as us, because even a small variation in where you
click will cause differences. This will not be a problem.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 247


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map

1. Determine the sorting goal for the Variety


The first step is to analyze sample fruit for the variety. We have completed this step for
you. The tutorial explains the process we followed.
We obtained sample fruit that were good representative examples of the Braeburn
variety.
From the sample fruit, we chose three pieces that would help us determine the different
colors on the fruit.

We looked at our "good" colors and our "bad" colors.


For this variety, we decided red was our good color. To grade, we thought that we would
need to separate the red color from the green color.
We thought we would need to set up three Grades - A, B and C.
Note that as we progress, both the number of colors and the number of grades may
change as the grading is refined.

2. Set up the Variety


Log on to your InVision computer using the "setup" password.

Click Offline. (Note that this tutorial shows the Variety screen.) You can have
either the Colors or Grades mode open.

248 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Click New Variety (or from the Variety menu, select New Fruit Variety…) to open
the Fruit Variety window.

3
3

Notice that Create new fruit variety is selected by default.


(You can also use this window to open an existing Variety, or to copy and modify a
Variety.)
Click Next to display the Fruit Variety Information window.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 249


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Complete these two fields:


• In Name, type Red Apple Tutorial.
If you get a message indicating that the fruit variety name is already in use,
then choose another name - Red Apple Tutorial 1 or 2, etc. or use your own
name as the Variety name.
(When setting up real Varieties, this name should be the same as the Sizer
Name for the Variety.)
• In Configure settings using standard fruit type, select Red Apples.
(Standard settings are provided for some produce Varieties. Selecting a
standard fruit type pre-sets options in this window to appropriate values for the
produce type. If you select “Generic”, no default values are applied, and all
options will need to be reviewed and set manually.)
Note: If this Vision pop-up displays, just click OK.

For a complete description of all fields available in this window, see “Fruit Variety
Information Window options” (Page 59) in Section 3.

Click Finish to save and select the Variety.


The selected Variety name displays in the Status Bar.
By default, the Add Fruit Color Category has a default Characteristic (Color 1)
and a default Grade (A. Grade).
Your screen will look similar to this:

250 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

3. Add Fruit Color Characteristics and Grades

Click Add Fruit Color. Create a new color is selected by default. Click Finish.
You now have two Fruit Color Characteristics:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 251


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Change the names of the Fruit Color Characteristics. (As a general rule, name the
first color as your "good" color, and the last color as your "bad" color. This is not
an InVision requirement, but it does make the Grading Grid and the Fruit Capture
List easier to read.)
• Change Color 1 to Red.
• Change Color 2 to Green.

Tip:
Use left click (and/or the keyboard arrows) to move to the Fruit Color characteristic,
and then just type the new name.
If you have difficulty moving to the color name cell, try clicking in a blank (grey)
screen area and pressing the UP arrow. Then use the LEFT, RIGHT, UP, DOWN
arrows to move around the Grade Grid cells.

Notice that the Fruit Color Characteristics also have a column heading in the Fruit
Capture Grid.
3

Click the Add Grade button to display the Add Grade window.
Add 2 grades after Grade A and click OK.
Example:

Tips:
• You can rename a Grade. Click in the title and type the new name.
• You can delete a Grade. Right-click on the Grade name and select Delete from the
menu.

252 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

The Save Changes button (Offline screen) or the Apply Changes button (Variety
screen) flashes to indicate that your changes have not yet been saved.
Click the button to save the settings.

4. Snap Images of your sample fruit


This Tutorial is best completed using the sample snapped images provided by Compac.
Because we have had to do this for you, we will explain what we did, and then tell you
how to load the image that we saved.

Select Colors mode to snap images.

What we did next:


With the sorter stopped, we placed our three sample fruit beneath a camera and
clicked the Snap button on the Color Maps toolbar. Taking your own Snap would
usually be your next step.

What you do instead:


Load our snapped image:
• Click on the Variety menu.

• Select Color Map Editing, Image, Load saved Image.

• In the Open file window, navigate to


C:  InVision  Help  TutorialData  AppleTutorialSnaps.
(Ask someone for help if you have any difficulty doing this.)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 253


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

• Select (i.e. click on) BetterBrightnessSnap1.bmp and click Open.

The snapped image displays in the Color Maps area.

Look at the snapped image. The three apples were selected because they are
good samples of obvious green, some red, and obvious red.
Practise navigating around this screen. With the Zoom button selected, left-click
on the image to zoom in (to see the color pixels) and right-click on the image to
zoom out.
Use the scroll bars to display all camera views of the three apples.
Note: On an InVision 5000 system, the images you capture will only display a "top
view". This image has the additional "side views" seen only on InVision 9000
systems.

254 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

5. Map two colors on a very simple color map

Map the Conveyor


2

Click the Conveyor button to display the Conveyor cursor.


Note: Turn the Info button on to display the cursor name. (You can choose
whether you display just the name, or also the RGB color values.)
Click the tip of the “eyedropper” on a good (dark) example of the conveyor color.
Try to click in the same area as the example above. This is just so that your results
are similar to ours.
Notice that one color seed has been added into the first position in the Grading
Status Bar:
( )
Map your first Fruit Color from the Snapped Image

In the Grade Grid, click on the Red Fruit Color Characteristic to select it.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 255


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Move your cursor over into the Color Map area.


Notice that the Fruit button is selected automatically. (If you can't see the Fruit
Cursor, click the Fruit button.)
The Fruit cursor shows the name of the selected color. It displays in both the
top image (Original Fruit Image) and the bottom image (Processed Fruit Image).
Click the tip of the Fruit cursor on a good example of the color red. Try to click in
the same area as the example above.

Click Learn to display the results in the Processed Fruit Image (bottom half of the
screen). Both the Conveyor color and the first fruit color are learned. You should
see a red apple on a blue background.
Important:
When new to color mapping, always click Learn after you click a color so that you
can see the result of your click. Later on, with experience, you may find you can
click in several areas before you do a Learn to achieve the result you require.

256 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Tips when color mapping:


If... then..
a click and Learn colors all of the the conveyor has not been mapped. Click
Processed Fruit image (e.g. the and Learn the Conveyor now.
bottom screen becomes fully
Green or fully Red)
a click and Learn recolors areas either click the Undo button (and then click
that you don’t want to be Learn again), or add more seeds to map
associated with the color back to the color you wanted.
a click does not recolor an area click and Learn some more color seeds for
large enough to take in all of the the color. (While you can click and Learn
conveyor or fruit area more than one seed, it is sometimes best to
Learn just one at a time.)
you want to remove all seed right click on the Characteristic name and
colors for a Characteristic and select Clear from the drop down menu.
start again

Notice that the Fruit Color Characteristic box in the Grade Grid changes color to
represent the fruit color you have selected, and another color seed is added:
( )
It doesn't matter if your processed fruit image doesn't look exactly like ours. You
can add more color clicks later on if you need to fix the mapping.

Map your second Fruit Color from the Snapped Image

Map the Green color (i.e. select the Green characteristic and use the Green
Fruit cursor to click on a good example of the color green). Try to click in the
same area as the example above.
Click Learn.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 257


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Correct your color mapping


7

Look at the mapping on the middle apple. There is too much Green on what is
obviously a good red color. Map another Red color seed in that area.

If you notice any conveyor color that is not correctly mapped, you can map and
Learn it now (or do it later).

When you have finished mapping the conveyor and the two colors, click the Save
Changes or Apply Changes button. (This button flashes when there is unsaved
data.)

258 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

6. Check and refine your Edge Definitions

Click the Edge button. Check whether the edge outlines clearly define the edge of
the fruit or whether any of the fruit color has been mapped as the conveyor color
(see an example of bad edges above). Zoom In on edges that need correction.

Map more colors in areas where the fruit has not been mapped correctly. (See "Tips
when color mapping" above.)
In our example, more Green color is being added to extend the edge. The blue
conveyor color in the middle of the apple will also need to be remapped as Red.
When all edges are clearly defined, Save Changes or Apply Changes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 259


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 1 - Create a Variety and a Simple Color Map, continued

Check your processed fruit image.


Do the colors and the position of the colors look similar to ours?
If not, try to achieve a similar result by mapping more conveyor, red or green colors.
You may need to Learn a lot of seeds to achieve the result, but extra color seeds are
not a problem.

What next?
You are ready to capture your snapped fruit samples and set up some initial cut-off point
values in your Grade Grid.
Go to Part 2: Capture Fruit and Set Up the Grade Grid.

260 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid

1. Capture fruit images

Click Grades to display the Grades mode so that you can work in the Grade Grid.

What we did next:


With the sorter running, we pressed F9 and ran our three sample fruit across the
sorter, one at a time. We kept the actual fruit in the same order that we captured them.
We looked at the fruit colors and decided which grades we wanted them to be.

Dark red - Light red - Green -


Grade A Grade B Grade C
Taking your own fruit captures and analyzing your grades would usually be your next
step.

What you do instead:


Load our first three captured images:
• Click on the Load Fruit button on the Fruit Capture Grid toolbar.

• In the Open file window, navigate to


C:  InVision  Help  TutorialData  AppleTutorialCaptures.
• To load the captures in the order of capture, click on the third capture, hold down
the Shift key and click on the first capture. Click Open.

The captured images display in the Fruit Capture Grid. Note that all captures will show
as Grade A, because Grade Cut-off Point values have not yet been set, and fruit are
being graded to the left-most default Grade in the Grade Grid (i.e. Grade A).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 261


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid, continued

Your Fruit Capture List should look similar to this:

Fruit 1

Fruit 3

Note however that your Red and Green percentage values may be very different to ours.

What we did next:


We examined the actual (physical) sample fruit to determine the percentage of green
we thought each of them had across their entire skins.

Fruit 1 Fruit 2 Fruit 3

• Fruit 1. Looking at this very red Grade A apple, we decided it had approximately
10% green. In the Fruit Capture List (see above) InVision calculated the
percentage of Green as 10.7%. We were pleased with that result against our initial
color mapping.
• Fruit 2. Looking at this apple, we decided it was approximately one quarter green.
InVision calculated the percentage of Green as 25.8%. We were satisfied with
both the percentage, and the fact that our Grade B apple showed a considerably
higher percentage of Green than the very red Grade A apple.
• Fruit 3. Looking at the apple, we decided it was probably about one third to one
half green. InVision calculated 37.5% Green which was close to our estimation.
We were also satisfied that it was showing more Green than our Grade B apple.
We decided the results were good enough for us to set up some initial Grade Cut-off
Points. If we hadn't been pleased with the results, we may have done some more
color mapping.

What you do:


Compare your Fruit Capture List to our example above.
Are the Fruit-node captures in the correct order in the Lane column? If not, click Clear
All and load the fruit captures again.
Are your Green percentage values similar to ours, and increasing from Fruit 1 to Fruit
3?
If they are, you can go straight to "3. Set your initial Grade Grid Cut-off Points"
(Page 265).
If they are not, go to "2. Adjust your Color Map using captured fruit images".

262 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid, continued

2. Adjust your Color Map using captured fruit images


If your color percentages from the previous step are close to ours (e.g. 10, 25 and 35)
then you do not need to complete this step. Go to "3. Set your initial Grade Grid Cut-
off Points" (Page 265).
If you have high Green percentages (such as in the example below), or your percentage
of green is not increasing from Fruit 1 to Fruit 3, then you will need to adjust your color
mapping.

Looking at the amount of Green on all three pieces of actual fruit, these are our
estimations of the approximate color percentages we think we should try and achieve:
• 10% Green (i.e. approximately one tenth of the fruit) on Fruit 1
• 25% Green (i.e. approximately one quarter of the fruit) on Fruit 2
• 35% Green (i.e. approximately one third of the fruit) on Fruit 3.

You can try and map the first three fruit to achieve these percentages on your own, or you
can follow the steps we have provided below.

Click on one of the fruit captures to display it in the Color Maps area. Select
Colors mode so that you can view the image. We have displayed Fruit 2.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 263


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid, continued

Consider the percentage of green color present on the actual (physical) apple. We
believe that this apple has less than 25% green. This is the value to try to achieve
in the Grade Grid List for this capture.
Use Zoom in and out and the scroll bars to examine all the images of the apple.
• If you find parts of the conveyor that are mapped to fruit, map them to conveyor
now.
• If you find areas mapped to Green that should be Red (as in the example
above), map some more Red.
Try and use the "top view" (the middle row of images) to click your color seeds
on, as this is the most important part of the image. (Note that you will not see
side views on captures taken on InVision 5000 systems.)
• After each Learn you can check the color percentage results in the Fruit
Capture List (click Grades to display that view, then click Colors to continue
your color mapping).
When you have achieved Green percentages of approximately 10, 25 and 35 (see
the screen below), save your changes.

264 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid, continued

3. Set your initial Grade Grid Cut-off Points

Your Fruit Capture List should look similar to this:

What we did next:


We kept our sample fruit in order of capturing, so we knew, based on the current color
mapping, the percentage of Red and Green on each piece of fruit. We also knew the
grade that we want each fruit to achieve.

Fruit 1 - 10.0% green Fruit 2 - 25.3% green Fruit 3 - 35.9% green


Grade A Grade B Grade C

Because Fruit 1 had the least green, and Fruit 3 had the most green, we knew that
we could set up some cut-off points that would achieve the three Grades we required.
We decided to the set initial cut-off points against our Green Characteristic as:
• Grade A - 0.0 to 12.0
• Grade B - 0.0 to 28.0

What you do instead:


Look at the Green percentage values you have achieved on the fruit captures.
Based on the values achieved in your Fruit Capture List, decide the cut-off points that
you will need to set to grade these three fruit as Grade A (Fruit 1), Grade B (Fruit 2)
and Grade C (Fruit 3).

Click in a Grade Grid cell and use your keyboard arrow keys to move to each "to"
cell for the Green characteristic.
Type in your cut-off point values (or select values using the spinbox arrows).
Note: There is no need to set values in Grade C, as fruit is graded from Left to
Right across the grade grid, and fruit with over 28% Green will default to the last
grade.
Save or Apply your changes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 265


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 2 - Capture Fruit and Set Up the Grade Grid, continued

Saving changes updates the grading in the Fruit Capture Grid.


Review your grading result for each fruit capture.
Have you achieved three grades?
If not, you could change the cut-off points in the Grade Grid to alter the grading
results.
For example, if we changed the amount of Green allowed in Grade A to 8% instead
of 12%, then, in the example above, Fruit 1 would be regraded as Grade B.

What next?
You are ready to run further fruit captures to test and refine your grading.
Go to Part 3: Run More Captures and Fine Tune the Grading.

266 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading

1. Capture more images for testing


While we have three apples now graded correctly, a larger selection of fruit will need to be
tested to determine whether all fruit over the sorter for this variety will grade accurately.
When setting up "real" varieties in your packhouse, there are two ways you can do this.

Once the Variety is set up in both Sizer and InVision, you can run a small batch of
fruit, and visually check the grading results at the assigned outlets.
• You can run more captures, and visually inspect the fruit images to ensure they have
achieved the correct grade in the Fruit Capture List.
Further testing may result in you needing to adjust your Grade Grid Cut-off Points. You
may also need to perform some more color mapping.
This tutorial simulates a situation where testing finds grading errors that need to be
corrected.

Capture Images

What we did next:


With the sorter running, and F9 (Capture) still active, we ran two more sample fruit
across the sorter. We kept the actual fruit in the same order that we captured them.
Taking your own fruit captures would usually be your next step.

What you do instead:


Load our last two captured images:
• Click on the Load Fruit button on the Fruit Capture Grid toolbar .

• (You may need to navigate to C:  InVision  Help  TutorialData 


AppleTutorialCaptures again.)
• To load the captures in the order of capture, click on the last capture, hold down
the Shift key and click on the second to last capture. Click Open.

The captured images display in the Fruit Grid.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 267


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading, continued

Estimate Grades

What we did next:


We visually inspected the fruit.

Fruit 4 Fruit 5

We decided that Fruit 4, which was dark red and green, should be a Grade B. We
estimated it had approximately 20 - 30% Green.
We decided that Fruit 5, which was a dull red color, should be Grade B as well. It also
had approximately 20 - 30% green.
We looked at the grading result in the Fruit Capture List. Our result was not
satisfactory.

What you do instead:


Look at your Fruit Capture List.
What Grades and Green percentages have Fruit 4 and Fruit 5 achieved?
Your results might be different to ours, but try to follow the next steps to fine tune your
grading.

2. Possible steps to correct the grading result


To correct the grading result, further color mapping and/or a grade grid adjustment may
be necessary.
Our aim is for both Fruit 4 and Fruit 5 to be a Grade B, with between 20 and 30% Green.
If your result is similar to ours, adapt the color mapping and Grade Grid adjustment steps
below to try and achieve our results.
If the color mapping is incorrect (at least some fruit shows wrong color percentages) you
will need to adjust the color map (go to "3. Review and fine-tune the Color Mapping
results" (Page 269).
If the color mapping is correct (all the fruit displays a reasonable percentage of the
different colors) but some grades are incorrect, you will need to adjust the grade cut-off
point values (go to "4. Review and fine-tune the Grade Grid values" (Page 271)).
In our case we needed to adjust the color map.

268 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading, continued

Fruit 4
Fruit 5

In our example, Fruit 4 achieved the Grading we wanted. It was Grade B, and had
between 20 and 30% Green. We did not need to do any more color mapping
against that Capture.
Fruit 5 was showing over 55% Green. We didn't believe this was correct. This
meant that we needed to adjust our color map.
You will need to look at the results in your Fruit Capture list and decide if Fruit 4 or
Fruit 5 requires more color mapping to achieve between 20 - 30% Green. If your
color mapping is correct, go to "4. Review and fine-tune the Grade Grid
values"(Page 271).

3. Review and fine-tune the Color Mapping results

In our example, we clicked on Fruit 5 and selected Colors mode to view the Color
Maps area. We identified areas that were mapped to Green when they should have
been mapped to Red.

You will need to click on your capture that needs adjustment.


In Colors mode, Zoom out to view the whole capture. Zoom in to examine the
mapping in detail.
Look for areas that have been mapped to Green that should clearly be Red, or Red
that should be Green.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 269


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading, continued

In our example we found all the areas, including Edges, which were incorrectly
mapped, and remapped them. We clicked and Learned over 20 more Red color
seeds. When the color mapping looked correct on Fruit 5, the Green percentage
was now 31.4% (see picture below).
You will need to click and Learn until the Green mapped on the Processed Fruit
Image is similar to the Green you can see on the Original Fruit Image and you
achieve a similar result to us.
Tip:
Switch between Colors mode and Grades mode when you want to view the entire
Fruit Capture List.

In our example, because we had changed the color mapping, we checked that all
the captures still had Green percentages that supported our original visual
assessment for the amount of Green allowed in our grades, i.e.
• Fruit 1: 10% Green - (Grade A)
• Fruit 2: 25% Green - (Grade B)
• Fruit 3: 35% Green - (Grade C)
• Fruits 4 and 5: 20 - 30% Green - (Grade B)
Values on the earlier captures had changed, but they were still close to our Green
percentage ranges.
While all the colors on the fruit were then mapped correctly, Fruit 5 still had the
wrong grade. We went to "4. Review and fine tune the Grade Grid Values".
You will need to review your results and decide if your grade grid cut-off points also
need adjustment.

270 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading, continued

4. Review and fine-tune the Grade Grid values

In our example, we looked at our percentages achieved and decided we needed to


set the cut-off points for the Green Characteristic to:
• Grade A - 0.0 to 12.0 (unchanged)
• Grade B - 0.0 to 35.0
Increasing the Grade B cut-off from 28% to 35% percent would allow Fruit 5 to
become a B grade without affecting the other grading. Fruit over 35% (e.g. Fruit 3)
would still remain C Grade.

You will need to look at the Green percentage values you have achieved on the fruit
captures.
Based on the values achieved in your Fruit Capture List, decide the cut-off points
that you will need to set to grade Fruit 5 as Grade B without affecting the other
grades.

In our example, we set our B Grade cut-off point to 35.

You will need to click in a Grade Grid cell and use your keyboard arrow keys to
move to each "to" cell for the Green characteristic(s) that needs changing.
Type in your new cut-off point values (or select values using the spinbox arrows).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 271


TUTORIAL 1 – CREATE A SIMPLE TWO COLOR VARIETY

Part 3 - Run More Captures and Fine Tune the Grading, continued

We clicked Regrade Fruit on the Fruit Capture Grid toolbar and were happy with
the new grades achieved in the Grade Grid List.

You will need to click Regrade Fruit (or Save changes) and review your results.
You may need to make further changes to your cut-off points if you haven't
achieved the grading result you expected.
When you are happy with the grading, Save your changes.

Next steps:
In a live packhouse environment, you would usually perform more testing on a
larger number of sample fruit, or on actual batches. You might monitor the sorting
at the outlets, or run more captures and view the results in the Fruit Capture List.
The color maps and grade cut-off points may still require further adjustment to
achieve consistent grading over a large number of fruit with variable colors.

What next?
This tutorial created a very simple color map and grade grid.
To learn more, go to Tutorial 2: Create a More Complex 3 Color Variety (and a Color
Combination).

272 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Tutorial 2: Create a More Complex 3 Color Variety (and a Color


Combination)

This Tutorial is in three parts:


 Part 1 - Review the Grading
 Part 2 - Change the Color Mapping
 Part 3 - Change the Grade Grid Cut-off Points

Before you begin


In Tutorial 1 you graded on "bad" green color and achieved the following result. (Note the
grades we achieved for Fruits 4 and 5 and the relatively small difference in the Red and
Green percentages.)

In this tutorial, you are going to grade on "good" color.


You are also going to change the grading result for Fruit 4. (We decided that it had a
higher percentage of "dark" Red color and should really be a Grade A.)
This is the result we want you to achieve.

You will be shown two ways of doing this - using the Green color, or creating a
Combination color.
If your Fruit Capture List grading and percentages were similar to ours at the end of
Tutorial 1, you can continue using your own Variety and adapt our steps to achieve the
required results.
If your color mapping, grades and color percentages were very different to ours, or you
have difficulty using your own Variety, then load and use our Tutorial Variety.

To use our Tutorial Variety ("Import Variety Tutorial 2")


• Save any changes to your Variety.

• Click on the Variety menu:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 273


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Tutorial 2: Create a More Complex 3 Color Variety (and use a Color


Combination), continued

• Scroll down and click on Import Fruit Variety:

• Navigate to C:  InVision  Help TutorialData  ResultsDatabase

• Click on the VUseresults database and then click Open

• Select Import Variety Tutorial 2

• Click Finish.

To reload the Fruit Captures (if necessary):


If the five fruit captures are not still displaying in the Fruit Capture Grid you will need to
reload them:
• Click on the Load Fruit button on the Fruit Capture Grid toolbar.

• In the Open file window, navigate to C:  InVision  Help TutorialData 


AppleTutorialCaptures.

• To load the captures in the order of capture, click on the last capture, hold down the
Shift key and click on the first capture. Click Open.

274 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 1 - Review the Grading

1. Determine the sorting goal


At the end of Tutorial 1 we had a Grade Grid List that achieved these Grades and Red
and Green color percentages:

We reviewed the fruit captures and the grading results for Fruits 4 and 5.
First we looked at the Fruit 4 capture:

Fruit 4: Grade B Red 75.1% Green 24.9%

Then we looked at the Fruit 5 capture:

Fruit 5: Grade B Red 68.6% Green 31.4%

Both these fruit were Grade B and had similar amounts of Red and Green, but they were
very different in appearance. Fruit 4 had lots of dark red color whereas Fruit 5 had lots of
light red color.
We decided that Fruit 4 should be a Grade A apple and Fruit 5 should remain as a Grade
B.

2. Determine the solution


To grade these two fruit differently we needed to identify Dark Red and Light Red as two
separate colors to grade on. We had to look at our sample fruit again, and estimate the
percentages of each color on each piece of fruit.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 275


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 1 - Review the Grading, continued

Estimate the Dark Red and Light Red color percentages


Using the Images screen we looked at every capture and estimated the amount of Dark
Red and Light Red on each of the five fruit.
Current Estimated Estimated
Capture Images view
Total Red Dark Red Light Red Green
Fruit 1 90% 30% 60% 10%

Fruit 2 77% 10 - 15% 55 - 65% 25 - 30%

Fruit 3 63% 20% 45% 35%

Fruit 4 75% 50 - 60% 15 - 25% 25%

Fruit 5 69% 0 70% 30%

Review the captures

276 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 1 - Review the Grading, continued

Click on the Images button to open the Images screen.


Scroll down through all five captures. Look at the dark red and light red colors on
the fruit. (The example screen above shows both color and infrared images.)
While you are in the Images screen, click on the Bands toggle button to show and
hide the band areas. This is the area on the produce that InVision obtains its best
color mapping results from. When color mapping, it is good if you can select your
color seeds from these areas.
Click on the Skins button to open the Skins screen. Scroll down to see InVision's
view of the skin area on each capture.
Look at our estimations in the table above, and see if you agree with our
percentage values.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 277


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 2 - Change the Color Mapping

1. Add a Light Red characteristic


Note that these steps will require patience if you are using your own Variety to recreate
our results.
Follow the steps below as closely as possible to try and recreate our grading result using
split "red" colors.

Create/rename the red color characteristics

In the Offline screen, create a new color characteristic. (Click Add Fruit Color and
follow the prompts.)

Rename:
• Color 3 to "Light Red"
• "Red" to "Dark Red".

You will need to remove the original red color seeds so that you can clearly define
the new "dark red" and "light red" colors. This is because we currently have all the
dark red and light red colors mapped to a single "Red" color, and we need to be
able to separate them.
Right click on the Dark Red characteristic and select Clear. (Note: This would
also remove characteristic cut-off points values if they had been set.)

2. Map the Dark Red and Light Red colors


To start your new color mapping, you can quickly map the Light Red and Dark Red colors
before starting to refine the mapping on all the captured images.
If you are confident with your color mapping, map a Dark Red color and a Light Red color
now and then go straight to "3. Review the result of your initial color mapping" (Page
281 ).
If you would like some help, then follow these steps.

278 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 2 - Change the Color Mapping, continued

Color map Light Red

In Colors mode, click on Fruit 5 to display its capture in the Color Maps area.
Locate an apple in the top view (middle row).
Click the Light Red characteristic. Click on a good example of light red in the
middle of the image, and click Learn.
Look at the result. Does your Processed Fruit Image look like ours below?

Look at your result in the Fruit Capture List. Is your percentage result similar to
this?

Tip:
You can also view the result in the Grade Grid area:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 279


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 2 - Change the Color Mapping, continued

Color map Dark Red

To map your Dark Red color, click Fruit 4 to display its capture in the Color Maps
area.
Click the Dark Red characteristic. Click on a good example of dark red in the
middle of an image, and click Learn.
Look at the result of your mapping. Turn on Edges. Does your image look similar to
ours below?

While we had this capture loaded, we looked for other obvious errors. We mapped
more Dark Red into the Green areas:

280 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 2 - Change the Color Mapping, continued

We mapped the edge of the apple that was incorrectly mapped to conveyor:

Review your color mapping on the capture.


Scroll right across all the top view (middle) images (and use Zoom in and out) and
look for areas that have obvious errors. You will need to look closely at both the
Original Fruit Image (top window) and Processed Fruit Image (bottom window) and
compare the actual colors to the mapping results.

3. Review the result of your initial color mapping

Look at the percentage results in your Fruit Capture list against our original color
estimations.
Are the percentages you achieved within the estimated ranges we expected?

Estimations:
Capture Dark Red Green Light Red
Fruit 1 30% 10% 60%
Fruit 2 10 - 15% 25 - 30% 55 - 65%
Fruit 3 20% 35% 45%
Fruit 4 50 - 60% 25% 15 - 25%
Fruit 5 0% 30% 70%

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 281


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 2 - Change the Color Mapping, continued

Our mapping results showed that that all our Green values were too high, and many
fruit had insufficient Dark Red color mapped.
Your results may be similar, or you may have too much or too little Green or Light
Red.
The actual percentages achieved against the mapping are still only an indication of
whether the mapping "seems" correct or not and more checking is required.

4. Refine your color mapping


We checked the color map for each capture closely and refined the mapping where
necessary.
While the mapping you do to correct your colors will probably not be exactly the same as
ours, the steps you follow will be similar.

Load the color map for the capture that seems to have the "worst" results when
compared to the estimations. Closely review the color mapping on all images and
correct the mapping as necessary, using our steps as a guide.
If you have imported our Tutorial Variety, then you can follow our steps exactly.

We loaded Fruit 1. It was obvious there was Dark Red color in the Original Fruit
Image that was still mapped as Light Red. There was Green that should be Light
Red. We looked closely at the Original Image and mapped until the Process Fruit
Image looked correct.

Tips:
• Always click in the middle of an area that is 'wrong'.
• When trying to shift the boundary of a color, sometimes it’s worth clicking on the
"good" side of the boundary (instead of the "bad" side of the boundary) as that
will make the boundary move.
• If you don't like the result of a click and Learn, you can click Undo and then
Learn, and try again.
• To clearly distinguish between colors in the Processed Fruit Image, try clicking
the Highlights button on the Color Maps toolbar. The mapping for the currently
selected color characteristic is shown in bright pink. Click on a different color
characteristic to highlight its color mapped areas.
Click Highlights again to turn highlighting off.

282 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 2 - Change the Color Mapping, continued

We reviewed all the images for Fruit 1 and found nothing else that required further
mapping. Red areas in the Original Fruit Image were clearly identified in the
Processed Fruit Image. The color percentages we achieved were within our
estimations.

Grading before we refined mapping on Fruit 1 was:

Grading after we refined mapping on Fruit 1 was:

Notice that fixing the color mapping for Fruit 1 had changed (and improved) the color
percentages on the other fruit captures as well. We were closer to our original
estimations.

Estimations:
Capture Dark Red Green Light Red
Fruit 1 30% 10% 60%
Fruit 2 10 - 15% 25 - 30% 55 - 65%
Fruit 3 20% 35% 45%
Fruit 4 50 - 60% 25% 15 - 25%
Fruit 5 0% 30% 70%

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 283


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 2 - Change the Color Mapping, continued

We reviewed all the images for Fruit 2 and added more Dark Red. The
percentages were now within the ranges we had estimated.

We reviewed all the images for Fruit 3. We knew that our percentage estimations
were not reflected in the Fruit Capture List for this fruit. This fruit was:
• Estimated: Dark Red: 20%; Green 35%; Light Red 50%
• Currently: Dark Red: 19%; Green 39%; Light Red 41%.
We looked closely at our images, using Zoom in and out to find areas of Green that
should be mapped to either Dark Red or Light Red.

284 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 2 - Change the Color Mapping, continued

We mapped some areas of Green to Light Red:

The mapping slightly extended the Light Red areas, and we achieved Dark Red 19%;
Green 36%; Light Red 45%.
We couldn't find any more Dark Red that should be mapped.
We looked at how the percentages had changed on the other fruit in the Fruit Capture
List as a result of our mapping. They were still within our estimations.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 285


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 2 - Change the Color Mapping, continued

We reviewed all the images for Fruit 4 and found nothing else that required further
mapping. The percentages were close to the ranges we estimated.

We reviewed all the images for Fruit 5.


This fruit had Edges that needed extending by mapping them to Green.
It had Dark Red that should be Light Red.
It had areas of Green that should have been Light Red.
Fixing this mapping took patience and several more color seed clicks. The corrected
mapping looked like this:

Our Fruit Capture List now looked like this:

Is your Fruit Capture List similar to ours? Are your Grades still A, B, C, B, B?
If not, see "To use our Tutorial Variety" (Page 287) in Part 3, “1. Review your
results”.

286 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 3 - Change the Grade Grid Cut-off Points

This part of the tutorial demonstrates two ways the Grade Grid percentage values can be
applied to Fruit Color characteristics to achieve exactly the same result.
Prior to editing the Grade Grid, a copy of the Variety is made to work in so that we can
retain our original color map and grading cut-off points. In the new Variety, we will grade
on "Green" and "Dark Red".
We can then reload the original Variety and practice grading on the more complex
Combination color.

1. Review your results


At the end of Part 2 our Fruit Capture List results were this. (We have removed the
Dimension and Volume columns from our picture.)

If your Fruit Capture List results (and your color mapping) are not very similar to ours,
then follow the steps below to load our Tutorial Variety.

To use our Tutorial Variety ("Import Variety Tut 2 Sec 3")


• Save any changes to your Variety.

• Click on the Variety menu:

• Scroll down and click on Import Fruit Variety:

• Navigate to C:  InVision  Help TutorialData  ResultsDatabase

• Click on the VUseresults database and then click Open:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 287


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 3 - Change the Grade Grid Cut-off Points, continued

• Select Import Variety Tut 2 Sec 3

• Click Finish.

2. Determine the sorting goal


Our aim was to grade Fruit 4 as Grade A, because it had a high percentage of very good
dark red. The other fruit were graded correctly.

There were two ways of achieving this. We could:


• continue grading on the "bad" Green color percentages, but add a "good" Dark Red
percentage cut-off value. (This option does not require a Combination color and is
much simpler.)
• grade by combining our Light Red and Dark Red colors to grade on "total red"
percentage values, and then set cut-off points against the "good" Dark Red
characteristic.

This tutorial demonstrates both options.

3. Grade using the "Bad" Green Color and a "Good" Dark Red color
Even if you have loaded our Tutorial Variety, before you begin, make a copy of the
Variety to work in.

Create a copy of your Variety (or our Tutorial Variety)

Click New Variety. Select "Create a new fruit variety based on an existing one"
and then click Next.
Select your Variety (or the Tutorial Variety), and click Next.

288 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 3 - Change the Grade Grid Cut-off Points, continued

Type a new name for your Variety and click Finish. The copied Variety is selected
in the Offline window.

Review and change your grading criteria

We reviewed the grading result for Fruit 4. We wanted this fruit to be Grade A.

In Grades mode, click on Fruit 4.


Look at the grading result in the Grade Grid.

The number colored red (25.1%) showed us that this was the percentage value that
determined the grade.
The Green cut-off point would have to be set to over 25.1% in the A. Grade to
achieve Grade A for this fruit.

You need to decide the A Grade cut-off point value you will set to regrade this fruit
as Grade A.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 289


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 3 - Change the Grade Grid Cut-off Points, continued

We set the A Grade cut-off point to 0.0 to 30.0. We left the B Grade cut-off point as
0.0 to 35.0.

Change your cut-off point and click Regrade Fruit.

We had successfully regraded Fruit 4 to Grade A. However Fruit 2, which had a


similar amount of Green had also changed to Grade A. We needed Fruit 4 to stay
as a Grade B. The difference between the two fruit was insufficient to accurately
grade on Green cut-off points.
One difference between the two fruit was that Fruit 4 had a lot more Dark Red than
Fruit 2. We needed to add a cut-off point for the Dark Red characteristic. We
decided that a Grade A fruit could have up to 30% green, but it must it also have
over 25% Dark Red.

290 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 3 - Change the Grade Grid Cut-off Points, continued

We changed the Dark Red cut-off point to 25 to 100 and achieved the result we
wanted:

Change your Dark Red cut-off point and click Regrade Fruit.
Save your changes.

4. Grade using a Combination of "good" colors and a Dark Red color


In the previous exercise we were effectively grading on how much of the fruit was “not
red” (Green) and then on how much of the fruit was “Dark Red”.
An alternative way to do this is to ask InVision to combine the two red colors (Light Red +
Dark Red) and then grade on this Combination color instead of the Green color.
This method may be easier to understand, because you will be grading on the “Total Red”
and the “Dark Red”. It also prevents grade map errors when working with more than one
“non-red” color (e.g. Green and Yellow-Maturity).

Create another copy of your Variety


Before you begin, make another copy of your original Variety, or of our Tutorial Variety
(Import Variety Tut 2 Sec 3).
(For detailed steps see "Create a copy of your Variety (or our Tutorial Variety)" (Page
288) in "3. Grade using the Green Color and a Dark Red color" in this Part).

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 291


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 3 - Change the Grade Grid Cut-off Points, continued

Create the Combination color


Follow our steps, using your own Variety, or the imported Tutorial Variety.

We created a combination of our two "red" colors.

Create your own combination color:


• In Grades mode, click Add Fruit Color.
• Select "Create a combination of two existing colors" and click Next.
• Select the Red and Light Red characteristics.
• Click Finish.
The Combined color characteristic shows in the Grade Grid area and in the Fruit
Capture Grid (see example below).

292 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 3 - Change the Grade Grid Cut-off Points, continued

We wanted to shift our grading from grading on Green to grading on "total Red".
We looked at the maximum "bad" Green currently allowed in Grade A, and "inverted"
the values for the "good" Dark Red + Light Red combination color.
For example:
• on a Grade A fruit, we had allowed up to 12% Green color.
The "inverse" of 0 - 12% (allowable bad color) is 88 - 100% (required good color)
(i.e. 12+88=100).
• on a Grade B fruit, we had allowed up to 35% Green color.
The "inverse" of 0 - 35% (allowable bad color) is 65 - 100% (required good color)
(i.e. 35+65=100).

You will need to change your Combination color cut-off points to be the "inverse" of your
current Green color cut-off points.
If you are using the Tutorial Variety, set 88 to 100, and 65 to 100:

We cleared the Green cut-off values and regraded. The results in the Fruit Capture
List stayed the same.
This was because "inverting" the cut-off point values only meant that we were now
grading on Dark Red + Light Red colors instead of the Green, so there was no
change to the grading.

You will need to remove both your Green cut-off point values. To do this:
• Click in the Green Grade A cut-off point grid cell to select it.
• Right-click your mouse and select Clear from the drop down menu.
• In the Clear item? pop-up, click Yes. Because you have selected a grade grid
cell, this removes the cut-off point values (but not the characteristic's color
seeds).
• Repeat the step to remove the Green Grade B cut-off point.
• Click Regrade and review the result. It should be unchanged.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 293


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION

Part 3 - Change the Grade Grid Cut-off Points, continued

With the Fruit 4 capture loaded, we reviewed its grading result in the Grade Grid.
We wanted this fruit to be Grade A.
This fruit had a combined red of 72.8%. To change the grading result, we lowered the
Grade A cut-off points from 88 to 100, to 70 to 100:

(Note that this is the same step we performed previously when grading on "Bad" Green and
"Good" Dark Red. In that step, we had to increase the Green cut-off point in Grade A from
12 to 30. Now, grading on the "good combined" colors, we need to lower the value to the
"inverse" of 30, i.e. 70).

This is the result we got when we regraded:

While we had achieved Grade A on Fruit 4, Fruit 2 had also changed from Grade B to
Grade A. Now we needed to set a Dark Red cut-off point value that would regrade Fruit 2
back to Grade B.

294 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 2 – CREATE A MORE COMPLEX 3 COLOR VARIETY (AND A COLOR COMBINATION)

Part 3 - Change the Grade Grid Cut-off Points, continued

We set the Dark Red Grade A cut-off point value to 25 to 100% so that only fruit with
greater than 25% Dark Red could achieve Grade A:
When we regraded, we had achieved the result we wanted:

You will need to follow the steps we went through, and review and change your cut-off
point values for both your Dark Red + Light Red color, and your Dark Red color.
If you are using our Tutorial Variety, you can set the same values that we did.
When you achieve our grading result, the tutorial is completed. Save your changes.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 295


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Tutorial 3: Grade Apples for Blemish

This Tutorial introduces Blemish Grading. It explains the parameter settings and InVision
features required to map blobs and grade blemished produce using sample images of
Gala apples.
Note that the tutorial can only be fully completed if your InVision system is configured to
use synchronized cameras. To check if your system is synchronized look at the title bar
at the top of the InVision screen. A synchronized system displays ‘(Pixel matched)’ (see
below).

If your system is not synchronized or is color only, you should be able to follow the tutorial
steps using color images only, and be able to complete most (but not all) of it.
Before continuing, you may wish to read Section 6 – Blemish or Blob Grading (Page
162), as background to completing the tutorial. The screens, windows and screen fields
used are also described in “Blemish Grading Parameters tab options” (Page 64) in
“Variety and Offline Screens” in Section 3.

In this Tutorial
Please read "Before you start Tutorial 3" before completing the following 10 tutorial
stages.
 Part 1 – Set up good Color Mapping for the Variety
 Part 2 – Review the results on more captured images (with blemish)
 Part 3 – Try grading on a “Bad” Fruit Color characteristic
 Part 4 – Create a Defect Color to grade on
 Part 5 – Review the Good Skin map and adjust if necessary
 Part 6 – Map Blobs and No Blobs on the fruit captures
 Part 7 – Use Images view to check Blob Tracking parameters
 Part 8 – Set Grade Cut-off Point values and check grading results
 Part 9 – Add IR color for “really bad” blobs
 Part 10 – Set IRBad Cut-off Point values to achieve final grading result

Before you start Tutorial 3


Ensure you have completed Tutorials 1 and 2 and/or have a good working knowledge of
creating Fruit Color maps and setting up Grade Grid cut-off points to achieve good color
grading results.
As for the previous tutorials, arrange access to the InVision computer and log on using
the “setup” password.
We recommend that you work in the “Offline” variety screen. (Note however that our
example pictures show the Variety screen. You will only be able to work in the Variety
screen if you are not sorting produce and the sorter is available for training purposes.)
This tutorial grades Gala apples, with varying shades of red and green, and varying
degrees of blemish (skin defects). Please note that this is not a recommendation on how
to set up blemish grading for all gala apples, but an example of how blemishes can be
mapped.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 296


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Tutorial 3: Grade Apples for Blemish, continued

Some tips for completing this tutorial


Please use the captured images provided by Compac to complete the Blemish Grading
steps. If you use your own images, you will not be able to follow the tutorial steps exactly.
Important:
When clicking on colors or blemishes (which are set up as “Blobs” and “Blob Colors” in
the Color Maps area), try and click on the same fruit image that we have clicked on, and
in exactly the same spot. This will help you achieve a similar result to us. Note this is not
required to achieve the correct grading, just to help you follow the tutorial more easily.
Note: We have provided IR images to illustrate IR mapping.
If your system does not support IR cameras, you will still be able to complete some
stages of this tutorial, however you will need to skip all the IR steps, and you will most
likely not be able to achieve the correct grading on our “BadBlemish2” sample fruit
capture.
If your system supports IR but is not ‘pixel matched’, you can still try to follow the
tutorial but you will see differences in the results and will need to perform some additional
steps (i.e. you will need to add an IR color to your normal colors in order to see the fruit in
the IR pictures, and you will need to set the blemish parameters for IR separately).
Note also that if your system is not pixel matched, our two tutorial fruit varieties will not
load fully on your machine. The variety will import but it will display a warning message.
While the variety setup and parameters will be correct, all the color mapping seeds
(clicks) will be removed. You will need to perform standard color mapping against the
images before you commence the tutorial.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 297


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 1 - Set up good Color Mapping for the Variety

Blemish grading still requires a good color map to be set up, so that “good” (and perhaps
‘bad’) fruit colors are identified for grading purposes. Once color grading achieves
reasonable results, Defect characteristics (which can be difficult to identify using color
grading alone) are added as grading criteria.
We have set up a Tutorial Variety with a Fruit Color Map and a Grade Grid, using sample
captures of good (non-blemish) Gala apples. While you will use our Variety to start the
tutorial, you would normally capture your own images, and build your own color map.
On Unsynchronized systems ONLY:
After importing our Variety, you will have no seeds displaying in the Grading Status Bar at
the bottom of the screen. Before starting this tutorial, you will need to perform basic color
mapping to map the Red and Green fruit colors.

1. Load our Variety and review our Color Map

1. Import our Tutorial variety:


• Click on the Variety menu:

• Scroll down and click on Import Fruit Variety:

• Navigate to C:  InVision  Help TutorialData  ResultsDatabase

• Click on the VUseresults database and then click Open

• Select Apple Blem Tutorial Start

• Click Finish.

298 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 1 - Set up good Color Mapping for the Variety, continued

2. Load our captured image of a good fruit that we have already color mapped.
In Grades mode:
• Click on the Load Fruit button on the Fruit Capture Grid toolbar.

• In the Open file window, navigate to C:  InVision  Help TutorialData 


AppleBlemishCaptures.

• Click on Clean1.cap and click Open.

3. In Colors mode, view the Fruit Color mapping (in the Color Maps area) and the grading
results in the Grade Grid.

This fruit is approximately 94% Red, with 6% Green. It is achieving Grade A because our
Grade Grid cut-off point requires less than 25% Green in a Grade A apple.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 299


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 1 - Set up good Color Mapping for the Variety, continued

2. Review the Variety Parameters and rename the Variety


1. Click Edit Variety, and look at the Variety parameters that are set for this blemish
variety. Notice the following set-up parameters.

In the Fruit Variety Information window:


• We have selected a standard fruit type of Red Apples + Blemish. This defaults
some of the settings for blemish grading.

In the Blemish grading parameters window (click on the button):


• Fruit has stem and calyx is selected by default.
• We have left both Max stem size and Max calyx size at their 900 default.
(This is suitable for our apple samples, because most of them have small stems.
Note however that apples usually have large stem bowls, so these values
generally need to be increased (to say 2000).
• Concave stem (apple) is selected by default.
• We have left the Concave stem (apple) tolerance at the 0% default.
(Note that this should generally be higher – between 8 and 15.)
• Max distance blobs merge (Pixels) defaults to 5. This may need to be
increased.
• Good Skin Color is defaulted to Red/Green.
• Good Skin Infrared is defaulted to Coarse.

Note that some of the Variety default values will be changed as the tutorial
progresses. (With experience, you will be able to start your blemish mapping with
settings more appropriate to the type and quality of produce you are grading.)

2. Click OK to return to the Fruit Variety Information window.

3. Change the name of the Variety to a unique name, such as Apple Blem <Your
Name> (e.g. Apple Blem John).

4. Click Finish. (Your changes are saved automatically.)

300 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 2 - Review the results on more captured images (with blemish)

1. Review fruit and decide grades


We decided our standard of grading for this tutorial would be four grades:

Grades A and B are Clean fruit (no blemish); with A having ‘high color’ good red fruit
and B having ‘standard color’ fruit (i.e. not red enough, but still with no blemishes).
• Grade C is mildly blemished fruit.
• Grade D are reject fruit with severe blemish.
Grades C and D (with blemish) do not care about the color of the fruit.
We have named the captured images you load during the tutorial to reflect the quality of
the fruit, that is “Clean” should be Grade A or B, “Cosmetic” should be Grade C and
“Bad” should be Grade D.

2. Load our images and follow our steps


1. Select Grades mode, and in the Fruit Capture List, click Clear All to remove the
currently captured fruit images.

2. Load all of our captured images.


• Click on the Load Fruit button on the Fruit Capture Grid toolbar.
• In the Open file window, navigate to C:  InVision  Help TutorialData 
AppleBlemishCaptures.
• Click on CosmeticDefect3.cap, hold down the Shift key and click on
BadBlemish1.cap and then click Open.

3. Look at the Grades achieved on all of our fruit captures.

At this point in blemish mapping, you would normally review your sample produce (and
their images) against their current color mapping grades and decide the grading you
wish to achieve.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 301


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 2 - Review the results on more captured images (with blemish),


continued

4. Open the Images view, and scroll down through our images. Do you agree with our
grading assessment below?
We think that:
• BadBlemish1 and BadBlemish2 should be Grade D (Reject):

BadBlemish1

BadBlemish2

(You will notice that the blemish on BadBlemish2 is much easier to see in the IR
image):

BadBlemish2 (IR)

• Clean1 and Clean2 and Clean4 are correctly graded as Grade A:

Clean1

Clean2

Clean4

• Clean3 has too much green, and should be Grade B:

Clean3

302 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 2 - Review the results on more captured images (with blemish),


continued

• All the CosmeticDefect fruit should be Grade C:

CosmeticDefect1

CosmeticDefect2

CosmeticDefect3

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 303


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 3 - Try grading on a “Bad” Fruit Color characteristic

For the purpose of this tutorial, we will try to map a “bad” fruit color to grade on.
Note: This step is only to demonstrate why normal color mapping will not produce the
result we want, and why we need to use the special Blemish Grading option instead.
Important:
Do NOT Apply your changes during this stage of the tutorial. We will need to Discard all
changes at the end.

1. In Grades mode, add another Fruit Color characteristic and rename it Bad.

2. Change the Mode from % to Area. This will achieve higher counts for the small
blemishes. (You could also use the per 10k Mode to increase the counts.)

3. In Colors mode, click BadBlemish1 in the Fruit Capture List to display the capture
in the Color Maps area.
(If the Infrared view is displaying, turn it off by clicking the Infrared button.)

4. In the Fruit Colors tab, map the blemish color to the Bad color characteristic. You
should be able to do this with just one click and a Learn.

304 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 3 - Try grading on a “Bad” Fruit Color characteristic, continued

5. Your result should look similar to this:

6. Look at the results in the Fruit Capture List. With our mapping, this fruit is showing
74.3 “Bad” color. (Your result may be slightly different, depending on where you
clicked on the blemish.)

Looking closely at the images, trying to map a Bad color has also mapped “Bad”
areas on the Clean captures (e.g. Clean2 and Clean4 show more bad color than
BadBlemish1).
This is because stem and calyx (and some of the darker red areas) are also
mapping as “bad” dark areas on our other fruit images.

CosmeticDefect1

There is not enough difference between the actual “Bad” on BadBlemish1, and the
“Bad” being identified on the other fruit, to enable us to set up grade grid cut-off
point values to grade on.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 305


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 3 - Try grading on a “Bad” Fruit Color characteristic, continued

7. What we did next:


We mapped more Conveyor, Green, Red and Bad on Clean2 and BadBlemish1 to
try and obtain a better result. We added cut points to our grade map to try and drop
our blemished fruit out of grade A. This is what we achieved, but there was still
insufficient “’Bad” differentiation to grade on and most of our Clean fruit had all
dropped to Grade B:

What you do next:


Continue trying to map “Bad” (and the other color characteristics) to see if you can
obtain a significantly greater percentage of “Bad” on BadBlemish1 than on the
other fruit captures.
Note:
Don’t spend too long doing this. We don’t expect to succeed because it is very hard
to map the blemishes to a color without also mapping the stem and calyx areas. We
need the blemish grading capability to recognize stem and calyx. Also, the defect on
BadBlemish2 is mainly visible in IR, and while we could potentially try and map
dark IR areas to the “bad” color, the problem would again be the stem.

8. Important:
Discard your changes. This will remove the Bad characteristic and discard all of
your color mapping changes.

Note:
While you might be able to map the black defect on the image BadBlemish1 with only a
limited amount of the stem also being mapped to “Bad”, the stem and calyx frequently
have colors that are very similar to blemishes. Using “bad” colors therefore generally
results in many good fruit being detected as bad.
This technique is very useful however when dealing with defects that have a very
distinctive color; for example stem pulls on oranges or bird droppings on kiwifruit (which
are both colored white), or green on potatoes.

306 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 4 - Create a Defect Color to grade on

Having discarded your changes from Part 3, now follow our steps to set up Defect Color
mapping.

1. Return to Variety mode, and create a Defect Color characteristic called Bad:
• In Grades mode, click Add Category.
• Select “Defect color – undesirable marks”
• Click Finish.

2. In the Grade Grid, rename the Defect Color to “Bad”, and Apply Changes.
Notice that the default Defect mode is Area (not percentage). This is because
grading standards usually specify the allowed area of defects (i.e. not a percentage
relative to fruit size). Also blob percentages are usually too small to grade on.
You can change the Mode to % or per 10k (which is similar to % but with counts
100 times bigger to display more usable numbers) if that suits your standards
better.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 307


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 5 - Review the Good Skin map and adjust if necessary

Note: The Good Skin tab is not available for selection until after you have added a
Defect Color characteristic.
The Good Skin map usually only requires some contrast adjustment to ensure that the
defect areas on fruit (blobs) are clearly visible and dark against the good skin.
In this stage of the tutorial we set the Good Skin settings to values that we know are
appropriate for the fruit type and images captured.

1. In Grades mode, load BadBlemish1 from the Fruit Capture List.


In Colors mode, turn off the Infrared view if it is still on.
Open the Good Skin tab. (The toolbar buttons change to Good and Bad, but we
will not be using these features.)
Note: You cannot select the Good Skin tab in Infrared view.

2. Set the Brightness to 100 and the mode to Negative. These are the best settings
for Blob mapping.
Tip:
Adjust the slider settings by clicking and holding the mouse on the slider. Drag the
slider until the processed fruit image and the value both change. Do not release the
mouse until the desired result is achieved.

308 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 5 - Review the Good Skin map and adjust if necessary, continued

3. The aim of Good Skin mapping is to adjust the Contrast so that the lower picture is
a uniform grey (eliminating the apple stripe pattern) and the marks on the apple
(blemishes and stem/calyx) are darker.

Using our examples below, change your Contrast settings to the same values as
ours, and notice the effect on the grey coloring.
Example 1 - Contrast set to 100:

The green parts are too dark; the Defect is too light.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 309


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 5 - Review the Good Skin map and adjust if necessary, continued

Example 2 - Contrast set to 55:

The striped area is still too dark.

Example 3 - Contrast set to 0:

While the Defect is dark (which is good), the stripes are too dark.

Example 4 - Contrast set to 35:

This achieves the best Contrast result on this image. The Defect is clearly defined,
and the stripes have disappeared. This is the contrast we should use.

4. Set your Contrast to 35, and Apply your changes.

310 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures

Blob mapping identifies marks (bad marks or sometimes good marks) on the produce.
The goal is to have all blemishes, as well as stem and calyx, clearly marked as blobs, and
good skin areas showing no blobs at all.

1. Display a blemished fruit capture and turn on the T value information

1. Click on the Blobs tab. BadBlemish1 should be displayed in color (i.e. Infrared
should be turned off).
Note: The Blobs tab is not available for selection until after a Defect Color
characteristic has been added.

2. Click the Blob button in the toolbar. (The Info button becomes available.)

Click the drop down menu button beside the Info button, and choose “Selected Color
with Details” (if it is not already selected).

This will show the T values (e.g. tR, tG, tB) against the Blob and No Blob cursor while
you are blob mapping:

T values measure the difference in color between the pixel you are viewing and the
surrounding area. If the difference is very small, then InVision will determine that the
pixel is probably NOT part of a mark on the fruit.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 311


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

2. Map your initial Blobs and No Blobs, noticing the T values


With our most blemished fruit image displaying, we mapped our “Blob” and “No Blob”
seeds.
For this stage, we suggest you follow our steps below (in the next stage you can map
independently if you prefer).

Tips:
• When clicking “Blob”, look at the T values and make sure at least one of them is
bigger than 15 or smaller than -15.
• When clicking “No Blob”, look at the T values and make sure all of them are closer to
0 than 10.
• When you just start mapping, use the obvious places with T values in the 30’s for
“Blob” and within ±3 (plus or minus 3) for “No Blob”.

Important:
It is generally best to click in the middle of images where the point you are clicking on is
far from the edge. Also, a click in some areas may not work for various reasons. When
the area you are pointing to is not good for clicking, the mouse cursor changes.

If you click when the cursor looks like this , then the click is ignored. It may help you
map if you note the current number of seeds in the status bar, and check that the number
increases each time you click.

What you do:


1. Move your Blob cursor over the defect.
Note: Try and click in exactly the same place on the same image as we did.

Click and Learn the blob.

All the fruit is mapped to Blob.

312 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

2. Now click the No Blob button and move your cursor over an area of good skin.

Click on a good area of skin with low T values.

Notice the number of color blob seeds displayed in the information bar at the bottom
of the screen has increased to 2.

Learn the blob.

This is the result we achieved in the processed fruit image:

3. Notice both the defected areas, and the stem and calyx, have been identified as
blobs. If your result is similar to ours, we are ready to proceed to the next step. If
you have a significantly different result to ours, try to undo your blob seeds by
clicking on the undo button, then try mapping again until you get a similar result to
ours.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 313


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

4. Look at the result in the Fruit Capture List:

Depending on where you clicked, your result may look different to ours. There may
be images with no blobs or images with more blobs.

5. Apply Changes, and look at your Blob mapping in the Images view:
• Click Images, and select Blobs.
• Right click your mouse and turn Toggle All Blobs On, by selecting it from the
menu. This displays additional multi-colored markers on the images. (See
“More about the Toggle All Blobs mode” below.)
• Scroll down until CosmeticDefect3 is showing.

• Blobs with a pink outline are areas InVision has identified as a blemish. Blobs
with a white outline have been identified as a stem or calyx. (At this point
however our focus is on ensuring that all marks are detected, including stem
and calyx. It doesn’t matter if stem and calyx are not correctly identified.)
• Check the blob mapping on all our sample fruit. You should find an incorrectly
identified stem on Clean3:

• Our next step is to return to the Blobs tab and find and fix all the obvious
mapping problems.
• Click Variety and return to Grades view.

314 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

More about the Toggle All Blobs mode


There are two modes for viewing blobs in the Images window. They are accessed through
the Toggle all blobs right click menu option. When On, it shows all the blob markers,
when Off it only shows the best view of each mark that the software identified. In this
Section we will work mostly in the Off mode, as we are interested in what we are
counting.
The color of the markers indicates what they represent:

Pink = blemish identified

White = stem / calyx identified (there should be one marker for each)

Blue and Bright Green = blob identified, but there is a better view of it already
identified. (Blue also indicates that the blob was identified close to the stem or calyx
so it was therefore not counted.
For a full list of colors, and what they mean, see “Size/Shape/Blemish Viewing Mode
(and Color Overlays)” (Page 216) in Section 8.

3. Review all fruit captures and refine the Blob mapping


The next step is to check the blob mapping on all the fruit captures, and make corrections
if necessary. If color and blob mapping are as accurate as possible, then any problems
with parameter settings or obscure blemish markings are easier to identify and resolve
later on.
There are two tools you might find useful while doing this - the Fruit Capture List results
and the Images view with the Blobs displayed. We demonstrate these in the steps
below.
Note that at this stage we are not concerned about the blemish count values displayed
against the fruit in the Fruit Capture List. The results can be very wrong if a blob is seen
as a stem, or a stem seen as a blob. We are only concerned with mapping all the marks
on the fruit and ensuring that no good areas are mapped as blobs. After we have mapped
our marks correctly, we may need to edit the blob grading parameters in order to identify
them correctly.
At this point, if you feel confident with your blob mapping, you may wish to work on your
own. (Open each fruit capture, check the processed fruit image and map more Blob and
No Blob as necessary to ensure your blob mapping is as accurate as possible.) If you
choose to not follow our steps, then you should check that the final result you achieve is
similar to ours (see 4. Review your results in this Part).
If you do follow our steps, don’t be concerned if the “Bad” values in your Fruit Capture
List are not always the same as ours as your mapping progresses. What is important is
the result, and that can be achieved in a variety of ways.
(Note, however, that this mapping can be completed in up to 5 to 10 clicks. If you have
not achieved the result by say 20 clicks (you can check the number of seeds in your
Blobs tab status bar), then Undo all clicks in the tab, Learn, and start again from 2. Map
your initial Blobs and No Blobs, noticing the T values (Page 312) in this Part.)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 315


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

To follow our steps


1. In Grades mode, look at the result of the Blob mapping in your Fruit Capture List.

In our list, we could see some obvious problems:


• BadBlemish2 had no blob area defined. This will be a problem when we try to set
a cut point between cosmetic blemishes and bad blemishes. Experience tells us we
will need to use the Infrared images to distinguish this blob, so we will fix it later.
• Clean3 had blobs identified, but these were “clean” fruit with no defects. We had a
look at Clean2 in the Images view.

Stem and calyx were mapped, but the stem was also being identified as a blemish
(pink color). This is a problem with the blob tracking (that is, the blobs are being
mapped correctly but are assigned to the wrong category), so we will fix that later.

2. What you do
Review our steps below, then look at all your captured images in the Blobs tab and
identify and fix any similar problems in your own mapping.
You may find some, or all, of the problems we encountered. What you will see will
depend on exactly where you have clicked. You might have blob areas defined on
different captures to us (e.g. Clean4 may also show a Bad area). This is not
necessarily “wrong”, and your mapping can be refined as you progress through the
tutorial.

3. What we did
We looked at each fruit image individually, adding Blobs or No Blobs as required to
more accurately reflect how the fruit actually appears.
We looked first at BadBlemish1.
In Grades mode, we clicked on BadBlemish1 in the Fruit Capture List.
In Colors mode, we viewed it in the Blobs tab. The processed fruit image showed
very little stem mapped.

316 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

It is often hard to view all of the stem as a single blob, but it is important to map it as
well as possible.

We mapped more Blob to correct it. (Remember that you can use Zoom mode to
increase and decrease your pixel size.)
It took several clicks (and some Undo’s) and Learns to define the stem.

We Learned our mapping.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 317


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

4. BadBlemish1 was now showing a lot of Clean areas as blob, so we mapped more No
Blob areas to fix this:

This was the result of our Learn. You can see that the stem bowl is not always totally
connected to the top of the stem, but this is the best result possible:

318 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

5. Checking through the rest of our images in the ‘blobs’ tab of the variety screen, we see
that Clean1 also have an area of the stem that is not mapped as ‘blob’. We correct
this by mapping some more of the stem as Blob.

6. We checked the blob mapping of the rest of our sample fruit in the Colors tab.
We mapped some blobs on all the Clean fruit to No Blob.

We checked again.
We mapped further stem on some of the other images to make our stem mapping as
accurate as possible, without mapping good skin as blobs.
Our images now had their stem, calyx and blobs mapped as Blob and the rest of the
fruit mapped as No Blob.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 319


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 6 - Map Blobs and No Blobs on the fruit captures, continued

7. What you do
Review your images and try to refine your blob mapping. If a click and Learn not does
color the area you require, remember to Undo and Learn again. Look for blobs that
are not clearly defined – (i.e. blemishes, stems and calyxes) and map more Blob.
Look for blobs showing on good skin, and map more No Blob.
When you have finished (or if you cannot achieve a result you are happy with) go to 4.
Review your results.

4. Review your results


1. With your blob mapping completed, compare your Fruit Capture List to ours:

As a consequence of refining our blob mapping:


• BadBlemish2 now had some blobs areas identified, but not nearly enough. (We
will use IR mapping later to fix that problem.)
• Looking at the Images screen, we can see that the stems of BadBlemish1 and
BadBlemish2 are being treated as blobs. While these are blemished fruit, and it
doesn’t particularly matter if they are downgraded, having their stems seen as “bad”
may indicate that good fruit might experience a similar problem and be incorrectly
downgraded. We need to alter our Variety settings to ensure that marks in these
areas are detected correctly as stems.

2. Are your results similar to ours?


If not, you may wish to continue the tutorial using our mapping results. You can do this
by importing and renaming our “Apple Blem for Images” variety:
• Click on the Variety menu option
• Select Import Fruit Variety
• Click on VUseresults.mdb
• Click Open
• Select Apple Blem for Images

• Click Finish.
• Select Edit Variety and change the name to something unique (e.g. Apple Blem
John1).

320 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 7 - Use Images view to check Blob Tracking Parameters

With good mapping achieved between Blob and No Blob, we now needed to make sure
we could identify the stem and calyx correctly so they would not be counted as defects.
This check is done in the Images view. As you will see in that view, most marks on the
fruit are seen multiple times by the system. We would like to count each mark exactly one
time to get the correct blemish measure for the fruit. The process of finding this “one”
correct view for each defect is called “Blob Tracking”.

What you do
1. Apply your changes, and open the Images view.

2. Look at BadBlemish1.
Ensure the Blobs button is selected.
Use the right click mouse menu to turn Toggle All Blobs Off and On.
With Toggle All Blobs On, the image looks like this:

With Toggle All Blobs Off, the images look like this:

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 321


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 7 - Use Images view to check Blob Tracking Parameters, continued

Both BadBlemish1 and BadBlemish2 images have stem and calyx identified (white
markers), but parts of the stems are also being detected as a blemish (pink markers).
This indicates we need to adjust some blob grading parameters in order to fix the
problem.
The most common things to change in order to improve blob tracking are:
• Similarity threshold. This controls the overall accuracy of tracking. If set too high,
blobs will be counted twice. If set too low, blobs will be missed.
• Concave stem tolerance. This controls the accuracy of tracking close to stem /
calyx. If set too low, stems may be counted twice. If set too high, real marks close to
the stem will be missed.
• Maximum distance blob merge. This controls merging of close marks. If set too
low, stem tips may be detected as defects. If set too high, marks near stem will be
merged with the stem and discarded.

Similarity Threshold change requirements can display like this:


In the Green apple example below, the stem was being identified (with a white outline),
but was also being identified as a blemish (with a pink outline). A decrease in the
Similarity Threshold value was required to grade this piece of produce correctly.

Before - Stem identified twice, once as a blemish

After – ‘Similarity Threshold’ value decreased and stem identified correctly

Concave Stem change requirements can display like this:

In the example above the image has stem and calyx identified (white markers), but the
calyx is also being detected as a blemish (pink marker).
If this occurs, the Concave Stem tracking parameter margins needed to be increased
(e.g. change them from 0 to 10).

322 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 7 - Use Images view to check Blob Tracking Parameters, continued

Max distance blobs merge (Pixels) change requirements can display like this:

In our BadBlemish2 example, either the distance needs to be increased to incorporate


the part of the stem incorrectly identified as blob back into stem area (or better blob
mapping might have merged the two parts of the stem into one blob).

3. To increase the blobs merge distance, right click on an image and select Edit fruit
variety from the menu.

Now select Blemish grading parameters and change the Max distance blobs merge
(Pixels) from 5 to 8.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 323


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 7 - Use Images view to check Blob Tracking Parameters, continued

4. Review the result in the Images screen.

Notice that BadBlemish1 and BadBlemish2 are now identifying the stem and calyx
correctly.

324 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 8 - Set Grade Cut-off Point values and check grading results

Our blob mapping results were then good enough to set some initial grades cut-off points
against the “Bad” Defect characteristic.

1. Look at your Fruit Capture List.

Your goal is for:


• badly blemished fruit to be Grade D.
• clean fruit to be Grade A, except for Clean3, which should be Grade B.
• cosmetic defect fruit to be Grade C.

2. If your Bad count values are similar to ours, set your Defect cut-off points to these
values:
• Grade A and B: 0 to 5
• Grade C: 0 to 100

Tip:
Use linking to set your Grade A and B values. To link grade grid cells, hold down
the Ctrl key and click once Grade A, and then again in Grade B. The grades are
selected for linking when the cells are grey. Release Ctrl and respond Yes to the
linking question. The cells become pink. Now when you enter a value into one
linked Grade, it is replicated in the other linked Grade(s).

3. Click Regrade Fruit. This was our grading result:

With the exception of BadBlemish2, we have achieved the grading we wanted.


(If you cannot achieve our grading result, you may wish to return to “4. Review
your results” (Page 320) in Part 6 to import our variety and complete all
subsequent steps using our mapping.)

Our next step was to fix the blob mapping and grading for BadBlemish2 using IR.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 325


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 9 - Add IR color for “really bad” blobs

Note: You will need to skip this Section if your system does not support IR.
The BadBlemish2 defect was similar in color to the good “Red” skin and was therefore
difficult to identify using color Blob mapping.
Because the defect was very obvious in IR, our best solution was to use the much higher
IR blob T values to map it.
Note that bad defects generally tend to be very visible in IR, while cosmetic defects are
not seen at all. The differentiation allows us to use IR defects for rejecting fruit, and color
blob mapping of blemishes for accurately grading fruit in the top grades.

1. Add another Defect Color characteristic and map the blob in the Blobs tab

1. In Grades mode, click Add Defect Color, create another defect color and rename it to
IRBad:

2. Click on BadBlemish2 to display it in the Color Maps area.


In Colors mode, ensure the Blobs tab is open and click the Color/IR button to turn on
the IR view.

3. Map the Blob color seed. A good place to begin is to use a t-value of -10 or lower (e.g.
-34) for blob, and a t-value of 0 for no-blob.

After the Learn, the image displays all Blob:

326 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 9 - Add IR color for “really bad” blobs, continued

4. Map the No Blob seed:

After Learn:

2. Map both Defect colors in the Blob Colors tab

1. Now that you have two Defect colors, you also need to map the Blob Colors (to
differentiate between the Bad color and the IRBad color) so that you can achieve the
grading results we want.
Open the Blob Colors tab.
Leave Infrared on (i.e. the Infrared view should still be selected).
Important:
Make sure the IRBad defect characteristic is selected (i.e. your cursor must display
“IRBad”. If it doesn’t, click on the IRBad name in the Grade Grid characteristics.)
Click and Learn the IRBad color.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 327


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 9 - Add IR color for “really bad” blobs, continued

This was our result in the processed fruit image:

2. Now return to Color view (deselect the Color/IR button).


Click on Bad in the Defect Color characteristics, to select it.
Click and Learn the “Bad” color in the Blob Colors map:

This was our result in the processed fruit image:

Apply Changes.

328 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 9 - Add IR color for “really bad” blobs, continued

3. Your Fruit Capture List should now show IRBad blobs mapped:

4. We can see from the values shown in the captured fruit grid that our IR mapping has
achieved the desired result, that is both BadBlemish fruit showing IR defect color, while all
other fruit are not.

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 329


TUTORIAL 3 – GRADE APPLES FOR BLEMISH

Part 10 - Set IRBad Cut-off Point values to achieve final grading result

Note: You will need to skip this Part if your system does not support IR.

1. With IR blob mapping completed, we are now ready to complete our mapping by setting
cut-off points for the IRBad Defect Color characteristic.

2. Select Grades, and in the Grade Grid, against IRBad, link Grades A, B and C and give
them a value of 0 to 10:

This ensures that all fruit with an IRBad value greater than 10 will be sorted to Bad
Blemish (Reject) grade.

3. Click Regrade in the Fruit Capture Grid.


We have achieved the result we required:

Apply Changes.

This completes the Blemish tutorial. Remember to Apply your changes.

330 © 2010 Compac Sorting Equipment Ltd July 2010, V1.0


INVISION 3.5 USER GUIDE

Compac Service, Technical Support and Sales

For our most recent contact details, please visit our website: http://www.compacsort.com.
Compac New Zealand, Australia and U.S.A
Compac New Zealand Main Service: +64 9 634 2307
Service email: service@compacsort.com
Parts email: parts@compacsort.com
Sales email: sales@compacsort.com
Main Office: +64 9 634 0088
Office fax: +64 9 634 4491
Postal address: PO Box 13516, Onehunga,
Auckland 1643, New Zealand
Compac Australia Service: +1 800 682 857
Sales: +61 418 269 233
Compac U.S.A. - California Service: +1 559 334 0118 or +1 877 402 1755
Sales: +1 559 903 3528
Compac U.S.A - Florida Service: +1 772 794 9904 or +1 888 794 9904
Sales: +1 772 473 1625

Partners and Manufacturers


Location Name Contact number Email
Argentina Compac Argentina +54 299 477 49 06 info@compacargentina.com
Brazil Compac Brazil +55 41 3653 8977 servicecla@compacsort.com
Chile Compac Latin America +56 29337322 servicecla@compacsort.com
China Compac China +86 10 6563 7755 infochina@compacsort.com
Italy/Europe Compac Sorma Europe +39 0547 418611 info@compacsorma.com
Korea Compac Asia (Sth Korea) +82 70 7018 0077 info@compacasia.com
Uruguay Compac Latin America +59 852 29802 servicecla@compacsort.com

International Agents
Location Name Contact number Email
France Sormaf +33 490712194 Sormaf@wanadoo.fr
Germany S & B Sorma +49 (0) 604796370 info@sbsorma.de
Israel Yaddim Marketing +972 86751181 haramaty@yaddim.co.il
Mexico Invision Systems +52 55 91532024 info@invision-sys.com
South Africa H.G. Molenaar & Co Pty +27 21 868 2210 infoza@compacsort.com
Ltd (Paarl)
Spain Sorma Iberica +34 961424080 Sormasa@sormaiberica.es
Turkey Sorma Turkey +90 212 789 6946 info@sormaturkey.com
U.S.A. Van Doren Sales +1 509 886 1837 doug@vandorensales.com
(Washington,
Oregon)

July 2010, V1.0 © 2010 Compac Sorting Equipment Ltd 331

Das könnte Ihnen auch gefallen