Lecture 14 (Lecture 13) - Camera and Image Processing Flashcards

1
Q

What type of technology do digital camera have?

A

Technology
* CCD (charge coupled devices)
* CMOS (complementary metal oxide semiconductor)
Resolution
* 6080 black/white up to
* several Mega-Pixels in 32bit color
* However: Embedded system has to have computing power to deal with this large amount of data!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do digital camera interface to a CPU?

A

Completely depends on sensor chip specs
* Many sensors provide several different interfacing protocols
 versatile in hardware design
 software gets very complicated
* Typically: 8 bit parallel (or 4, 16, serial)
* Numerous control signals required
* Digital camera sensors are very complex units. In many respects they are themselves similar to an embedded controller chip.
* Some sensors buffer camera data and allow slow reading via handshake (ideal for slow microprocessors)
* Most sensors send full image as a stream after start signal (CPU must be fast enough to read or use hardware buffer or DMA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is digital camera interfacing and what is the problem 8-bit parallel?

A

Camera can send data in a variety of ways, esp.
serial and 8-bit parallel.
Problem 8-bit parallel
* Every pixel from the camera causes an interrupt
* Interrupt service routines take long, since they need to
store register contents on the stack
* Everything is slowed down

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the solution to the problem 8-bit parallel?

A

Solution with FIFO Buffer
* Use FIFO as image data buffer
* FIFO is similar to dual-ported RAM, this approach has no synchronization between camera and CPU
* When FIFO is half full, interrupt is generated
* Interrupt service routine then reads FIFO until empty (Assume delay is small enough to avoid FIFO overrun)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Image Data Formats

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What things can image processing do?

A

Software for “Embedded Vision Systems”
* Motion detection
* Color detection
* Shape detection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is motion detection?

A

Idea for Motion Detection (gray scale image)
Subtract gray scale values for all pixel-pairs from two subsequent images
Better use absolute difference of values than just difference
* Compute average over all pixels
* If average above threshold: motion detected! (returns 1 = motion, or 0 = no motion) - Refer to slides for implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is object tracking

A

We have done: check whether there is motion yes/no
* What would be nice:
(assume camera mounted on servo)
Check where in the image motion is detected and move the camera towards it (→ tracking) - Refer to slides for implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are colour models?

A
  • RGB values produced by most cameras
  • RGB changes with lighting conditions
  • Ideally, we want hue value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the HIS Conversion?

A

Refer to slides

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is colour detection?

A

Uniquely colored objects are easier to detect
by using color than shape
1. For a single pixel:
➢How can we check whether a pixel value matches a
given sample color (HSI)
2. For the whole image:
➢How can we find the location of a colored object ?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the steps/process of colour detection?

A
  1. From RGB to Hue (of HSI) (values are made up)
  2. ## From Hue to Yes/No for Match - Does pixel HSI value match desired HIS range? Yes (1) or No (0) ?We have now:
    * For a given hue and range, we can transform an input image into a binary image with every pixel expressing yes or no
    What we really want:
    * Look for color “blob” that defines object position
    Idea:
    * Create histogram over image columns (and image rows). Histogram max. is defined as object center.
    —–
  3. From Match-Image to Position Coordinates - For whole image: find cluster of matching pixels to find object
    3.1 Histogram in x and y
    3.2 Find position of max. values in x and y histogram
    Refer to slides for implementation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly