Jump to content
  • 0

ZYBO Z7 video processing demo: Sobel edge detection not works


MHBagh

Question

Hi

I'm using ZYBO Z7020 and I want to implement Sobel edge detection. I found the C++ codes in documents of "ZYBO Z7 & Pcam 5C HLS Video Workshop", but it has some errors when I Run C Simulation in Vivado HLS 2019.1. It would be appreciated in advance if someone help me to fix it. My C++ codes and print screen of my Console and Error is attached.

Regards

Console.jpg

err.jpg

edge_detect.cpp edge_detect.h edge_detect_test.cpp

Edited by MHBagh
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hello @MHBagh,
It seems that in the code all the Mats are defined as HLS_8UC3 (RGB Images). In the code, you are doing conversions between RGB and GRAYSCALE images before and after applying the Sobel operator.
Try to redeclare the input and output Mats of the Sobel operator (img1 and img2) as HLS_8UC1 and see if the assert succeeds.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...