element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Path to Programmable 3
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable 3
  • More
  • Cancel
Path to Programmable 3
Blog Embedded Vision Engine for Development of a Computer Vision terminal
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Path to Programmable 3 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: pandoramc
  • Date Created: 4 Sep 2023 3:42 PM Date Created
  • Views 556 views
  • Likes 7 likes
  • Comments 0 comments
  • seed
  • Ultra96-V2 Board
  • amd
  • Path to Programmable III
  • Path to Programmable 3
  • realsense
Related
Recommended

Embedded Vision Engine for Development of a Computer Vision terminal

pandoramc
pandoramc
4 Sep 2023

Table of Contents

  • Vitis AI
  • Camera support
  • Real-Time

Vitis AI

It is an interesting project from AMD to run inference development solutions. There are several versions of Vitis AI. This time, compared with the last post with PYNQ Computer Vision environment, I use the Vitis AI 2.0 image available here. Before to start the use of AI/ML models the board, it is recommended update the PMIC devices since, according to the models could be an increase of power comsumtion and the board reboots.Using the section 14 of the manual and a terminal, yo must be able to detect the actual firmware of our PMICs,

image

You MUST perform both updates on the same session our you will have board damage risk. To probe that PMICs are updated you can run the read-registers command and verify the date of the information available in the device.

image

Read the instructions in the manual for the PMIC device register update, avoid damnage your board.

The main advantage using Vitis AI is the usage of Deep Learning Processor Unit (DPU), an optimized processor for the AI inference, and the high level abstraction for the computer vision system development using the architecture

image

Camera support

Despite the effectiveness of Vitis AI, I had some details using my cameras. One of the devices with supported by Ultra 96 v2 is the Intel RealSense platform. The integration of the camera is really slow if you do not integrate from your image., this process took a lot of time using the librealsense repository. The incompatibility between the Vitis AI and the librealsense is the xinerama-dev since this component has errors with xorg in the version available on Vitis default images. PYNQ does not have this incompatibility, but requires a lot of compilation time to integrate on the board using a pre-build image. The RealSense platform has a special sensor visualization based on IR patterns to estimate depth in a scene. You can take a darkshot to visualize the IR patterns with other cameras as follows

image

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Above you can see a video testing the D415 deep camera at 2 FPS. You can configure it to achieve a better acquisition time and process the information. But in Vitis AI I was not able to run the RealSense platform and my configurable camera had not support to direct usage in the platform to use it. This issue limited me the kind of cameras to use, where my macroscopy platform was not able to use. The main project is to the embed the seed characterization, but this time we will wait to do it.

image

Real-Time

The Ultra 96 has a special hardware to improve the processing of images or other kinds of data. This time, for image processing and deep learning inference, the platform is able to infer the information in a good time. An application to this it is the pose estimation, from an image we can superpose an 'skeleton' to illustrate the position of the body.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Two details did not convince me at all, one is the blinky screen when the video is processed and two is that we have no posibility to resize windows Slight smile. Despite these inconveniences we are able to accelerate any kind of inference using the DPU. In addition to this, you can reconfigure your models using the Vitis AI framework in order to access to other DPUs or change the input and output sizes of the models.

image

Remember, to accelerate this process, you need an NVIDIA board to improve the training time or the quantization of the models. We ha ve training log of a U-Net model below, this model was used to segment seeds in another project. This time I was working to embeding the processing in a small form factor platform.

image

I had results like the following to extract features from seeds and characterize one by one in order to have an inventory to get a harvest with high quality.

image

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube