element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultra96 Hardware Design ON Semiconductor Dual Camera Mezzanine Support
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 8 replies
  • Answers 2 answers
  • Subscribers 46 subscribers
  • Views 362 views
  • Users 0 members are here
  • ultra96
  • pynq
  • 96boards on semiconductor dual camera mezzanine
Related

ON Semiconductor Dual Camera Mezzanine Support

cstarr
cstarr over 1 year ago

Hi,

 

Does anyone know where I can find driver information for the ON Semi Mezzanine board?

 

So far, I have followed the "Getting Started" document, running the Petalinux image and starting a preinstalled program that shows the camera feed on a monitor. I am unsure where to go from there. Eventaully, I would like to use PYNQ, but do not see any documention on how to install the driver.

  • Reply
  • Cancel
  • Cancel

Top Replies

  • ctammann
    ctammann over 1 year ago +2 suggested

    Hey everyone,

     

    I just wanted to chime in so you knew I was working on this request. We currently don't have a stand alone driver, although we are working towards releasing one. That will be a while though…

  • jomoenginer
    jomoenginer over 1 year ago +1 suggested

    What sort of driver are you looking for?

     

    Adam Taylor at Hackster.io has a pretty good example of building a Vivado project for the Ultra96 and the Dual Camera Mezzanine.

    https://www.hackster.io/adam-taylor…

  • jomoenginer
    jomoenginer over 1 year ago in reply to cstarr +1

    This interests me as well considering I am currently working on a RoadTest for the Ultra96 and the Dual Camera Mezzanine.

     

    From what I can tell, there is little in the way of examples and such for the 96Boards…

  • jomoenginer
    0 jomoenginer over 1 year ago

    What sort of driver are you looking for?

     

    Adam Taylor at Hackster.io has a pretty good example of building a Vivado project for the Ultra96 and the Dual Camera Mezzanine.

    https://www.hackster.io/adam-taylor/avnet-ultra96-and-onsemi-dual-mipi-camera-3492ab

     

    He does mentioning attempting moving to PYNQ with the Ultra96 and the Dual Camera Mezzanine, but I am not sure if he has completed this.

    You might start here but I do not see anything specific with regards to the Dual Camera board though:

    https://github.com/Avnet/Ultra96-PYNQ

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • cstarr
    0 cstarr over 1 year ago in reply to jomoenginer

    Thanks for the reply!

     

    I am new the Ultra96 and Xilinx, and was hoping to avoid using Vivado. It seems like there is a bit of a learning curve, and PYNQ is pretty user friendly and has everything I need on it aside from a driver for the Dual Cam Mezzanine board.

     

    As far as what type of driver, I am looking for a Linux driver so I can access the camera from a python script - specifically using openCV

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 1 year ago in reply to cstarr

    This interests me as well considering I am currently working on a RoadTest for the Ultra96 and the Dual Camera Mezzanine.

     

    From what I can tell, there is little in the way of examples and such for the 96Boards ON Semiconductor Dual Camera Mezzanine and nothing I could find with regards to PYNQ.

     

    There is this post on element14 with regards to building a PetaLinux image for the Ultra96 V2 and Dual Camera Mezzanine but nothing specific to OpenCV or PYNQ again:

    https://www.element14.com/community/groups/fpga-group/blog/2021/01/14/ultra96-v2-dual-camera-mezzanine-petalinux-build-instructions

     

    You could try to start with an example using the Ultra96-V2 and Python and see if you can add the Dual Camera Mezzanine instead of the USB camera.

    Ex:

    https://www.hackster.io/AlbertaBeef/face-detection-and-tracking-in-python-on-ultra96-v2-02d104

     

     

    If I come up with something, I'll post it.

     

    Cheers,

     

    Jon

     

    • Cancel
    • Vote Up +1 Vote Down
    • Reply
    • Verify Answer
    • Cancel
  • ctammann
    0 ctammann over 1 year ago

    Hey everyone,

     

    I just wanted to chime in so you knew I was working on this request. We currently don't have a stand alone driver, although we are working towards releasing one. That will be a while though so I'm trying to figure something else out. We haven't done any development with this platform using PYNQ so unfortunately I do not have any reference designs to share. I'll post back with anything I'm able to come up with ASAP.

    Thanks
    Chris

    • Cancel
    • Vote Up +2 Vote Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • cstarr
    0 cstarr over 1 year ago in reply to ctammann

    Thanks for the info, Chris.

     

    For now, I want to just capture an image from the Mezzanine board using the petalinux image. I see there is some kind of driver available because the device registers under "/dev/media*" and "dev/video*", and the "run_1920_1080" script of course streams this video. Interestingly, any attempt to capture this image using openCV in python fails (it us successful with other basic UVC compliant webcams).

     

    Am I meant to be able to do anything with the petalinux image that ships with the Mezzanine board aside from running the "run_1920_1080" program?

     

    Thanks,

    Chelsea

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 1 year ago in reply to cstarr

    Chelsea,

     

    What is the error that you are seeing when using OpenCV?

     

    Looking at the "run_1920_1080" script, it appears it is setting up the two Cameras  via meida-ctl and then uses the /dev/video0 device to capture an image.  I wonder if you need to set-up the two cameras first before using them.

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Verify Answer
    • Cancel
  • jomoenginer
    0 jomoenginer over 1 year ago in reply to jomoenginer

    With regards to PYNQ support with the Ultra96 and the Dual Camera Mezz, perhaps the PYNQ Computer Vision code would be a place to start:

    https://github.com/Xilinx/PYNQ-ComputerVision

    https://github.com/Xilinx/PYNQ-ComputerVision/blob/master/overlays/README.md

     

    This would require some work though considering the base branch is 2 years old..

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Verify Answer
    • Cancel
  • cstarr
    0 cstarr over 1 year ago in reply to jomoenginer

    Hi Jon,

     

    I don't actually get an error, OpenCV just captures an empty image (filesize is 0).

     

    I think you are right in that I am not setting something up correctly.

     

    I had made a silly assumption that the "run_1920_1080" program was only available as a binary, as it was in the bin folder! Your posted prompted me to take a second look. I think this tells me enough on how to interact with the driver to move forward.

     

    Thank you!

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • Verify Answer
    • Cancel
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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube