alt.embedded
Checking Out Lattice’s Embedded Vision Kit

Checking Out Lattice’s Embedded Vision Kit

What’s the prognosis from Senior Technology Editor Bill Wong after his hands-on dive into the Embedded Vision Kit?

Lattice Semiconductor’s Embedded Vision Development Kit (EVDK) is only $199 (Fig. 1), at least until the end of 2018. It consists of three boards: a Crosslink VIP board, an ECP5 VIP processor board, and an HDMI VIP Output Bridge board. This FPGA-based solution takes advantage of the Modular Video Interface Platform (VIP) for embedded vision. It’s an ideal platform for developing and experimenting with high-performance video processing for applications such as drones, augmented reality, and Industry 4.0 machine vision.

1. The Embedded Vision Development Kit incorporates a CrossLink VIP board, an ECP5 VIP processor board, and an HDMI VIP Output Bridge board.

The CrossLink VIP Input Bridge board includes two Sony IMX 214 high-speed MIPI D-PHY interface camera sensors. The ECP5 VIP Processor board holds an ECP5-85 FPGA that’s optimized for image signal processing. Replete with an on-board USB programmer, it handles most of the custom work. The HDMI VIP Output Bridge board provides support for HDMI displays.

The EVDK is just part of Lattice’s solution targeting vision applications. Its SensAI stack features tools that incorporate machine learning (ML), including FPGA-based binarized-neural-network (BNN) and convolutional-neural-network (CNN) accelerators (Fig. 2). BNNs target the compact, iCE40 UltraPlus FPGA, while the CNN support addresses the ECP5 FPGA. The SensAI neural-network compiler can take Caffe and TensorFlow models and generate weights for FPGA IP.

2. The EVDK is the basis for Lattice’s SensAI solution for vision processing.

The EVDK is supported by Helion Vision’s Helion IONOS Image Signal Processing (ISP) IP (Fig. 3). A free evaluation version of Helion IONOS ISP support is included with the EVDK. This includes 9- to 32-bit color support with video-processing support such as lens shading correction and defective pixel correction. These tools are typically used to clean up or optimize the video data.

3. Helion Vision’s Helion IONOS Image Signal Processing support is free with the EVDK.

Helion has over 100 cores that come preconfigured. These can be combined and managed using a common configuration bus that’s configurable via a microcontroller. Helion provides a graphical configuration application that streamlines development. IP blocks are able to be chained together, and each can be individually configured.

4. The EVDK comes programmed with an application that takes the two camera inputs and streams the combined video information to a single HDMI display.

The EVDK comes programmed with an application that exercises all of the major components. It takes the inputs from the two cameras and combines the video streams to a displayable single stream (Fig. 4). The HDMI VIP Output Bridge board is designed to connect directly to an HD display. Checking out the demo software takes only a few minutes, since it’s only a matter of plugging in the HDMI cable and the supplied power brick. To illustrate further, here’s a demo from Lattice:

The next step takes a bit more time. I had to download Lattice’s Diamond software development platform and install it, but first Windows 10 had to update itself. Not to be delayed, I submitted my request for the free one-year license via email. That showed up a day later. On the plus side, you can start this process before the kit arrives. I just wish the Windows 10 updates would work properly. I spent more time having it revert to a previous version and then manually installing an update than I did getting Diamond installed with a new license file.

Now the hard work starts as FPGA development is still a chore. The development tools have improved significantly over the years, and access to the Helion ISP support makes the job much easier. Still, consider just the starting point for the demo project. This includes a pair of image-processing blocks (Fig. 5).

5. The demo application includes a pair of image-processing blocks that are then merged into a single stream.

This merged stream is then handed off to the Helion ISP blocks (Fig. 6). The blocks include pixel correction, white balance, debayer, color space conversion, and gamma correction. For the demo, these blocks use the default settings, but this is a place where developers can easily experiment with settings as well as include additional blocks within the data stream. The output is sent to the HDMI board that can hand it off to the HD display.

6. The data stream is passed through a bunch of Helion blocks to clean up the video stream.  

Moving past the initial demo and into development isn’t like dropping off a cliff. Lattice has free IP and reference designs on its site. Most include very good documentation, although each instance is often targeted at a specific platform. For example, Face Tracking Using Convolutional Neural Network Accelerator IP is a reference design for the EVDK, although it requires the addition of an inexpensive MicroSD adapter board (Fig. 7). The documentation is over a dozen pages and it details the architecture, Verilog HDL, and Diamond project.

7. The Face Tracking Using Convolutional Neural Network Accelerator IP is a reference design that targets the EVDK.

The project takes advantage of the SensAI support, including the use of the CNN accelerator. Check out the Lattice Neural Network Compiler for more details.

Changing the architecture of the system will require a bit of learning if you’re not familiar with Verilog or the Diamond tools. However, adjusting the CNN model used in the system is relatively straightforward.

FPGAs, vision systems, and machine learning remain a challenging development space, but platforms like the EVDK are making it significantly easier to get started.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish