Docsity

Graphical User Interface Overview - Lecture Notes | MEM 380, Study notes of Mechanical Engineering

Partial preview of the text

Download Graphical User Interface Overview - Lecture Notes | MEM 380 and more Study notes Mechanical Engineering in PDF only on Docsity!

CMUcam

Graphical User Interface Overview

Introduction

This guide provides a brief overview of the CMUcam2 Graphical User

Interface (GUI). The CMUcam2 GUI is a java program designed to allow

you to explore many of the functions of the CMUcam2 that would normally

be hard to visualize. For example, it would be impossible to understand the

output from a “send frame” command or a “line mode” packet in a terminal

program. It is also designed to allow you to quickly and easily prototype and

explore different CMUcam2 configurations that might aid in accomplishing

your vision tasks.

Recommended System Requirements

  • Java 1.4.0 or higher (1.4.2 will give a significant speed increase)
  • 64 Mb of RAM
  • Pentium 2 350 Mhz or better
  • 50 Mb of disk space for java

Windows Installation

The first step is to determine if your computer already has java installed. The

easiest way to do this is to go to the “start menu” and select “run”. Inside the

run dialog, type “command” to get a dos prompt. Now try typing “Java -ver-

sion” into your command line. If a message that says “Java version “1.x.xx”

appears then java is installed. If instead you get “command not found” or

some similar message, then you need to go to http://java.sun.com and down-

load a copy of Java (J2SE, JDK, JRE are all valid things to install). Sun

should have platform specific instructions on how to install java. Also be sure

that your version of Java version 1.4.0 or newer. If it is not, then you will

need to download a new copy of Java.

Unix and Mac OS Installation

The first step is to determine if your computer already has java installed. The

easiest way to do this is to open a shell or other command prompt. Now try

typing “Java -version” into your command line. If a message that says “Java

version “1.x.xx” appears then java is installed. If instead you get “command

not found” or some similar message, then you need to go to java.sun.com

and download a copy of Java (J2SE, JDK, JRE are all valid things to install).

Sun should have platform specific instructions on how to install java. Also be

sure that your version of Java is version 1.4.0 or newer. If it is not, then you

will need to download a new copy of Java.

Focusing the Camera

Once you have the ability to send frames from the camera, you should be able

to rotate the front part of the CMUcam lens and see the image change. Try

to get the picture to be as sharp as possible by dumping frames and changing

the position of the lens a small amount each time. Usually the camera is in

focus when the lens is a few rotations away from the base.

Rotate here to focus

CMUcam Lens Mount

Click here to send a frame

Command Dialog Box

Once you see this main screen, click on “Grab Frame” button.

Out of Focus Image

Focused Image

Config Panel

This panel allows you to configure all of the CMUcam2 parameters except

for servo controls. Each button calls one of the camera configuration com-

mands and sets it with the associated value. Below is a cross reference for

each button with the corresponding CMUcam2 command that can be found

in the CMUcam2 Manual.

CR command see page 26 in the CMUcam2 Manual. Also, see “Notes on Better Tracking” on page 19 of the CMUcam2 Manual.

See HR command on page 33 of the camera manual.

See PD command on page 41 of the camera manual. See TI command on page 48 of the camera manual. See FS command on page 29 of the camera manual.

See HD command on page 33 of the camera manual. See DC command on page 27 of the camera manual. See LM command on page 35 of the camera manual.

See BM command on page 25 of the camera manual.

See NF command on page 39 of the camera manual.

See VW command on page 50 of the camera manual.

See DS command on page 28 of the camera manual.

In case the CMUcam2 loses power, this command can update all of the configuration parameters.

Color Panel

The red dot repre- sents the centroid of the tracked object.

The blue box repre- sents the bounding box returned from color tracking.

This panel lets you test the color tracking functionality of the camera. To en-

able and disable line modes, see the config panel.

This button calls the Track Color (TC) com- mand. See page 48 in the camera manual.

This button calls the Track Window (TW) command. See page 49 in the camera manual.

These boxes hold the color bound values that are passed into Track Color. They can be automatically set by clicking on the image in the Camera View Tab.

Line Mode Color Legend

Line mode 1 bitmap of tracked object

Linemode 2 min/max per line values

Linemode 2 Middle Mass per line

This label shows the frame rate while the camera is tracking.

Histogram Panel

This panel lets you test the histogram functionality of the camera. A histo-

gram with pixel differencing enabled gives you interesting data about the

distribution of sharp edges in an image. This can be used to determine focus

as well as the amount of texture found in a scene.

This menu selects the channel that the histo- gram operation is to be performed on.

This button calls the GH command that can be found on page 30 of the camera manual.

The height of the bars represent the number of pixels that fall into that bin.

The bars themselves represent the actual bins. The lower values are on the left and larger valued bins are on the right.

Stats Panel

This panel lets you test the statistics functionality of the camera. Different

line modes can be enabled on the config panel.

This column shows the mean color value minus the deviation color value. When linemode 2 is enabled, the devia- tion of each line is used to calculate the differ- ent strips going down the bar.

This column shows the mean color value plus the deviation color value. When linemode 2 is enabled, the devia- tion of each line is used to calculate the differ- ent strips going down the bar.

The middle bar repre- sents the mean value. This example shows different mean values going down the length of the bar, because linemode is enabled.

These boxes show you the mean value written out in text.

This button calls the GM com- mand that can be found on page 31 of the camera manual.

This is the CMUcam2 GUI Overview v1.0 for the CMUcam2 GUI v1.0. For more information go to http://www.cs.cmu.edu/~cmucam or contact us at [email protected] Copyright 2003 Anthony Rowe and Carnegie Mellon University. All Rights Reserved