bogdan.deac

Technical Forum Moderator
  • Content Count

    30
  • Joined

  • Last visited

  • Days Won

    1

bogdan.deac last won the day on November 15 2017

bogdan.deac had the most liked content!

About bogdan.deac

  • Rank
    Frequent Visitor

Recent Profile Visitors

662 profile views
  1. bogdan.deac

    sdsoc_opencv error

    The errors are generated because: 1. You try to use VideoCapture function. As I mentioned here, you cannot use that function and you don't need it. Remove it. Modify the algorithm to use a simple cv::Mat as input. 2. no member named 'imshow' in namespace 'cv' and no member named 'waitKey' in namespace 'cv' were solved here. Make the needed changes.
  2. bogdan.deac

    sdsoc_opencv error

    The needed modifications to Simple Filter2d Live I/O demo are the following: 1. in filter2d folder replace all present files with your code. Have a look on filter2d_cv function and modify your code to use the same function arguments e.g. uint8_t *frm_data_in is the input video frame and uint32_t *frm_data_out is the output video frame. 2. in main.cpp: replace the if (btn & 1) block with a call to the algorithm placed in filter2d folder. 3. all the other folders (drm_helper, hls_helper, uio and vl4l2) take care of video stream and input/output interfaces. You don't need to change them.
  3. bogdan.deac

    sdsoc_opencv error

    Simple Filter2d Live I/O demo for HDMI or Pcam 5C are the simplest projects. They take video stream from HDMI or Pcam 5C, apply a simple filter and write the video stream to HDMI monitor. I cannot provide a simpler example. The code is commented and should be easy to understand and modify.
  4. bogdan.deac

    sdsoc_opencv error

    The after-build procedure is described here. Follow steps from 13 to 19. To see the output of the video i/o demo, connect a HDMI monitor to TX Zybo connector. Also, connect Pcam C5 to J2 connector.
  5. bogdan.deac

    sdsoc_opencv error

    No, they will not work. You have to change them if you want to use HDMI or Pcam video stream.
  6. bogdan.deac

    sdsoc_opencv error

    Your project will not work with Zybo camera (Pcam 5C). You need to implement more. You have to study the Simple Filter2d Live I/O demo (For Pcam 5C) to find out how to acquire video stream from camera.
  7. bogdan.deac

    sdsoc_opencv error

    Your project's building time is so short because you did not accelerate any function in FPGA. The entire program will be run in ARM processor. On the other hand, video i/o demo is configured to accelerate aprox. 3 functions in FPGA and the building process for these is more complex. A set of another tools have to be called in the building process (SDSoC -> Vivado HLS -> Vivado (Synthesis, Implementation, Bitstream Generation)) to implement the specified functions in FPGA and to generate the data mover network (DMAs). You can read more about these in Xilinx SDSoC documentation.
  8. bogdan.deac

    sdsoc_opencv error

    I built your project successfully. To remove "undefined reference" errors follow the steps: 1. Right-click on your project -> C/C++ Build Settings 2. SDS++ Linker -> Libraries 3. In Libraries (-l) tab click Add... button (right corner) and add opencv_highgui 4. Repeat step number 3. with opencv_objdetect 5. Click OK and Build the project I attached the code for reference. I made the following changes: 1. Include directives were modified to point to libraries correctly. 2. #include<opencv2/videoio.hpp> was removed, you do not need it. 3. Using directives were removed, taking into account Google C++ Style Guide: Observations: 1. cv::waitKey() function waits for an input from a keyboard. You can attach a keyboard to zybo z7 but I am not sure if this will work properly. Maybe the application will be blocked in an infinite loop. If you want to attach a keyboard, set the jumper on JP2 connector. 2. cv::imshow() function displays an image on the screen. The Petalinux image that is used with SDSoC platform does not have a GUI. For this reason you may expect a run time error on your application. 3. cv::VideoCapture() function reads a video stream from a webcam. As far as I know, the SDSoC platform does not include a Petalinux driver for webcam. The application will crash because it will be impossible to read from a webcam. my_video.cpp
  9. bogdan.deac

    sdsoc_opencv error

    @kotra sharmila To export a SDSoC project follow the steps: 1. From Project Explorer tab right-click your project -> Export... 2. General -> Archive File -> Next 3. Select an export location -> Finish Attach the archive.
  10. bogdan.deac

    sdsoc_opencv error

    You don't have to follow the steps that are listed in the reVision README.md document. In README.md is specified: That steps are used only if you want to modify an existing platform or to create a new one, and are not recommended for beginner users because one need to poses knowledge about digital design, Petalinux configuration and building and deep SDSoC understanding. So do not try to build the platform by your own. Instead, use a released version of reVision platform. Follow the next steps: 1. Make sure that you have installed SDx 2017.4. 2. Open SDx -> Xilinx -> Add Custom Platform... 3. From Manage(Custom) tab, remove any platform related to zybo_z7, using the Remove button. Close SDx. 4. Download the released reVision platform. 5. Extract the archive. 6. Set the SYSROOT environment variable and launch SDx. This is done in Linux by opening a new terminal and running: source /opt/Xilinx/SDx/2017.4/settings64.sh export SYSROOT=<extracted platform absolute path>/zybo_z7_20/sw/sysroot sdx 7. Point to an empty directory to use as a workspace. 8. In the top menu bar, click "Xilinx->Add Custom Platform..." 9. In the new window, click "Add Custom Platform..." and select the folder with the extracted platform. 10. Click OK 11. Now, in the top menu bar, click "File->New->SDx Project...". 12. Select Application Project and then press Next. 13. Name the project and press Next. 14. Select zybo_z7_20 and click Next. 15. Select Linux from the System Configuration drop-down. 16. Click Next, no other options should need to be changed on this page. 17. Select the Simple Filter2d Live I/O demo sample application to run and click finish to create the project. 18. Click the hammer button to build the project. This can take between 5-30 min on typical host machines. Let us know if you get stuck in any of the steps.
  11. bogdan.deac

    sdsoc_opencv error

    Did you get these errors using a sample project or using your own source code?
  12. bogdan.deac

    sdsoc_opencv error

    The absolute path to a file or directory is specified from the root directory (/). In your case: /home/roash-sw-linux/path_to_the_folder_which_contains_the_downloaded_platform/zybo_z7_20/sw/sysroot
  13. bogdan.deac

    sdsoc_opencv error

    Close SDx and run the following commands in a terminal: source /opt/Xilinx/SDx/2017.4/settings64.sh export SYSROOT=<extracted platform absolute path>/zybo_z7_20/sw/sysroot After that, run sdx in the same terminal window and try to build the project again.
  14. bogdan.deac

    sdsoc_opencv error

    Hi @kotra sharmila, Can you provide the source files of your project?
  15. bogdan.deac

    sdsoc_opencv error

    Start from a xfopencv-oriented sample like Simple Filter2d Live I/O demo.