Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

21
Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann

Transcript of Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

Page 1: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

Capturing and analyzing pictures with a dsPIC

Diana BindrichStephan Lehmann

Page 2: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.
Page 3: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

3 Bildkodierung Software Resultate

GR R G G G GRRR G B B B B B

640

480

Page 4: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

4 Bildkodierung Software Resultate

GR R G G G GRRR G B B B B B

5 bit rot 6 bit grün 5 bit blau

data bits für 1 pixel

Page 5: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

5 Bildkodierung Software Resultate

Page 6: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

6 Bildkodierung Software Resultate

grün

rot

Page 7: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

7 Bildkodierung Software Resultate

Camera module C328-7640

dsPICF3013

RS232

Page 8: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

8 Bildkodierung Software Resultate

STOPSTART D3 D4 D5 D6 D7D2D1D0

0

1

data bitsstart bit stop bit

Page 9: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

9 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

Page 10: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

10 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

Page 11: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

11 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘watchPlant_cam’) Initialisiert die Kamera Überwachung startet wenn dieser Befehl gesendet wurde Holt jede Sekunde ein Bild (640x480, 16 bit Farbe) von der

Kamera Analysiert jedes Bild Speichert das Analyseergebnis im log- File

Page 12: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

12 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘watchPlant_cam’) Initialisiert die Kamera Überwachung startet wenn dieser Befehl gesendet wurde Holt jede Sekunde ein Bild (640x480, 16 bit Farbe) von der

Kamera Analysiert jedes Bild Speichert das Analyseergebnis im log- File

send(‘getLog_cam’) Überwachung wird beendet und Log- File wird zurückgegeben

Page 13: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

13 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘watchPlant_cam’) Initialisiert die Kamera Überwachung startet wenn dieser Befehl gesendet wurde Holt jede Sekunde ein Bild (640x480, 16 bit Farbe) von der

Kamera Analysiert jedes Bild Speichert das Analyseergebnis im log- File

send(‘getLog_cam’) Überwachung wird beendet und Log- File wird zurückgegeben

send(‘A_lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Analysiert jedes Bild Gibt das Analyseergebnis zurück

Page 14: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

14 Bildkodierung Software Resultate

Befehl von octave

send(‘lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Schickt das Bild an den PC

send(‘watchPlant_cam’) Initialisiert die Kamera Überwachung startet wenn dieser Befehl gesendet wurde Holt jede Sekunde ein Bild (640x480, 16 bit Farbe) von der

Kamera Analysiert jedes Bild Speichert das Analyseergebnis im log- File

send(‘getLog_cam’) Überwachung wird beendet und Log- File wird zurückgegeben

send(‘A_lres_cam’) Initialisiert die Kamera Holt ein Bild (80x60, 16 bit Farbe) von der Kamera Analysiert jedes Bild Gibt das Analyseergebnis zurück

send(‘A_hres_cam’) Initialisiert die Kamera Holt ein Bild (640x480, 16 bit Farbe) von der Kamera Analysiert jeds Bild Gibt das Analyseergebnis zurück

Page 15: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

15 Bildkodierung Software Resultate

pWatch

makeConnection

send(’watchPlant_cam’)

hl_watchPlant

analyzePlant

_U1RXInterrupt

save2Log

savePixel (unimplemented)

delay(1s)

send(’getLog_cam’)

hl_getLog

while(plantcontrol&WATCH==WATCH)

dsPIC

octave

Page 16: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

16 Bildkodierung Software Resultate

PWATCH_ANALYZE

PWATCH_SEND

PWATCH_HIGH_RES

PWATCH_SEND

Analysiert ein 640x480 Bild und schickt das Ergebnis an octave

Analysiert ein 80x60 Bild und schickt das Ergebnis an octave

PWATCH_SAVE_PIC_TOO

Holt ein 640x480 Bild und schickt es an octave

Holt ein 80x60 Bild und schickt es an octave

PWATCH_HIGH_RES

Analysiert ein 640x480 Bild pro Tag und speichert das Ergebnis im log-file

PWATCH_HIGH_RES

Bit nicht gesetzt

Bit gesetzt

Page 17: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

17 Bildkodierung Software Resultate

R 0,33862

G 0,36621

B 0,29517

R/G 0,92467

R 0,37464

G 0,33403

B 0,29133

R/G 1,1216

Page 18: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

18 Bildkodierung Software Resultate

R 0,33649

G 0,34636

B 0,31715

R/G 0,9715

R 0,34833

G 0,33453

B 0,31714

R/G 1,0412

Page 19: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

19 Bildkodierung Software Resultate

Page 20: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.

20 Bildkodierung Software Resultate

Vielen Dank für die Aufmerksamkeit!

Page 21: Capturing and analyzing pictures with a dsPIC Diana Bindrich Stephan Lehmann.