19
Additional Experiment 2: Image Processing August 17, 2011

Additional Experiment 2: Image Processing

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Additional Experiment 2: Image Processing

Additional Experiment 2: Image Processing

August 17, 2011

Page 2: Additional Experiment 2: Image Processing

Setup

Network Cable

Target- Demo application

Host- CCS- Web Browser

Page 3: Additional Experiment 2: Image Processing

Multi-core Software Demonstration

• SYS/BIOS-MCSDK provides tested and supported components like:• SYS/BIOS – real time optimized

OS for scheduling• Platform Development Kit (PDK)

– application interface to C667x peripherals like network coprocessor

• Inter Processor Communication – mechanism to communicate across cores

• Image Processing Demonstration provides• Use of TI’s image processing

library• Starting point for image

processing product development

1G Eth Config

IPNetwork

CCS/Host IF

SYS/BIOS-MCSDK

Image Processing Pipeline Demonstration

SYS/BIOS

IPC PDK

Image Processing Interface

Image pre-

process

Sample

Edge Detection

Image Post

Process

TMS320C667x

Page 4: Additional Experiment 2: Image Processing

Image Processing Demo

Processor

Page 5: Additional Experiment 2: Image Processing

Image Processing Demo Pipeline

Input BMP

image

NDK:HTTP

transferBMP

image

RGB extract & slicing

IPC: Processing

start message to slave nodes

RGB image

RGB to YLumaimag

e

IMGLIB: Sobel Filter Gradient

image

IMGLIB: Threshold

Edge

IPC:Processing complete

message to master node

RGB image

RGB to YLumaimag

e

IMGLIB: Sobel Filter Gradient

image

IMGLIB: Threshold

Edge

Slave Node 0

Slave Node n

Combine edge slices & create BMP

BMP image

NDK:HTTP

transferOutput BMP

image

Master Node Master Node

Page 6: Additional Experiment 2: Image Processing

Image Processing

• Connect PC and board• Set PC network configuration• Launch target configuration• Load program and run• Viewing result via PC web browser

Page 7: Additional Experiment 2: Image Processing

Connect PC and board

• Connect the board to PC using Ethernet cable. • Connect XDS100v1 and power on board.

Page 8: Additional Experiment 2: Image Processing

Set PC network configuration

• The demo runs in Static IP mode ;board IP address 192.168.2.100,Gateway IP address 192.168.2.101 and subnet mask 255.255.254.0

• Set up PC TCP/IP configuration of ‘Wired Network Connection’ like below:(start->network connections->Wired Network Connection->Internet protocol(TCP/IP) )

Page 9: Additional Experiment 2: Image Processing

Launch target configuration

• Switch to target configuration window• Right-click on c6678_XDS100v1_emu.ccxml,

select ‘launch selected configuration’

Page 10: Additional Experiment 2: Image Processing

Connect target

• Group all cores

Page 11: Additional Experiment 2: Image Processing

• Select group 1; right click ,then select ‘connect target’

Page 12: Additional Experiment 2: Image Processing

Load program and run

• There are two images to be loaded to master (core 0) and other cores.

Page 13: Additional Experiment 2: Image Processing

• Select core 0, load program<MCSDK INSTALL DIR>\demos\image_processing\evmc667xl\master\Release \image_processing_evmc667xl_master.out

Page 14: Additional Experiment 2: Image Processing

• other cores (referred as slave cores) to be loaded with <MCSDK INSTALL DIR>\demos\image_processing\evmc667xl\

slave\Release\image_processing_evmc667xl_slave.out

Page 15: Additional Experiment 2: Image Processing

• When all loaded, select group 1, run all cores together.

Page 16: Additional Experiment 2: Image Processing

• In the CIO console window, the board should print IP address information like below:

MCSDK IMAGE PROCESSING DEMONSTRATIONQMSS successfully initialized CPPI successfully initialized PA successfully initialized EVM in StaticIP mode at 192.168.2.100Set IP address of PC to 192.168.2.101PASS successfully initialized Ethernet subsystem successfully initialized Ethernet eventId : 48 and vectId (Interrupt) : 7 Registration of the EMAC Successful, waiting for link up ..Network Added: If-1:192.168.2.100 Service Status: HTTP : Enabled : : 000

Page 17: Additional Experiment 2: Image Processing

Viewing result via PC web browser

• Open a web browser in the PC. • Enter 192.168.2.100 in web page.

Page 18: Additional Experiment 2: Image Processing

• Please follow the instructions in the web page to run the demo.

• Note that, sample BMP images are provided in <MCSDK INSTALL DIR>\demos\image_processing\images

Page 19: Additional Experiment 2: Image Processing

Thanks!

August 17, 2011