Go to Post Having 75% of the drive train without direct connection to the transmission would make me a bit queasy, but then again, I'm not Winnovative. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Old 12-30-2016, 05:03 AM
Michael Hill's Avatar
Michael Hill Michael Hill is online now
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,562
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

If anyone has figured out how to utilize the H.264 hardware decoder on the Pi with OpenCV without virtual hardware, that would be awesome. I have a C920 camera, which has H.264 compressed output (which is why you pay so much for it). Just changing the fourcc capture property doesn't seem to do the business. I have heard of setting up a gstreamer pipeline (which does use to hardware decoder) and setting the sink to /dev/video1 can work, but I'd like a cleaner solution.
Reply With Quote
  #2   Spotlight this post!  
Old 12-30-2016, 01:27 PM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 296
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

Quote:
Originally Posted by Michael Hill View Post
If anyone has figured out how to utilize the H.264 hardware decoder on the Pi with OpenCV without virtual hardware, that would be awesome. I have a C920 camera, which has H.264 compressed output (which is why you pay so much for it). Just changing the fourcc capture property doesn't seem to do the business. I have heard of setting up a gstreamer pipeline (which does use to hardware decoder) and setting the sink to /dev/video1 can work, but I'd like a cleaner solution.
Have you considered using libavcodec/libavformat?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Old 12-30-2016, 03:21 PM
Michael Hill's Avatar
Michael Hill Michael Hill is online now
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,562
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

Quote:
Originally Posted by euhlmann View Post
Have you considered using libavcodec/libavformat?
Hm, I hadn't heard of that. I'll see if I can get something to work with it. Thanks
Reply With Quote
  #4   Spotlight this post!  
Old 12-30-2016, 05:38 PM
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 36
BenBernard is an unknown quantity at this point
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

@Skyehawk, does your image include the java artifacts for OpenCV?
Reply With Quote
  #5   Spotlight this post!  
Old 12-30-2016, 05:56 PM
Skyehawk's Avatar
Skyehawk Skyehawk is offline
Nuts N' Bolts
AKA: Skye Leake
FRC #0876 (Thunder Robotics)
Team Role: Mentor
 
Join Date: Nov 2012
Rookie Year: 2011
Location: Northwood, ND
Posts: 198
Skyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to allSkyehawk is a name known to all
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

Quote:
Originally Posted by BenBernard View Post
@Skyehawk, does your image include the java artifacts for OpenCV?
No, it is very barebones. However the build files for OpenCV have not been purged so it can be rebuilt and reinstalled. But if you are going to go through all that trouble you may as well work from scratch...

Sorry I couldn't be more help,
Skye Leake
__________________
My time in FIRST has made me a better person, frankly I don't know where I'd be without it.



2011 Lake Superior Regional Champs
2015 Central Illinois Regional Engineering Inspiration Award recipients
2016 Central Illinois Regional Champs
Reply With Quote
  #6   Spotlight this post!  
Old 12-30-2016, 10:51 PM
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 36
BenBernard is an unknown quantity at this point
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

No problem, and thanks. I have a build almost complete...and once I'm sure it's working properly I'll image it too--for the Java addicts among us.
Reply With Quote
  #7   Spotlight this post!  
Old Today, 08:40 AM
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 36
BenBernard is an unknown quantity at this point
Re: Vision co-processor Raspberry Pi (Raspbian Jessie/OpenCV)

FYI, I was finally able to get OpenCV fully built with Java 8 bindings and installed on a Pi 3 running Jessie.

I'll try to find a way to share an image (my card is 32GB, so a full image would be prohibitive) but in the meantime, here are the "Installing OpenCV 3.1.0 on Raspberry Pi Debian Jessy with Java Library" instructions I followed from Robin Henniges.

I also compared notes along the way with Adrian Rosebrock's excellent "Raspberry Pi 3 + Raspbian Jessie + OpenCV 3" instructions.

Following the two together should allow you to build an OpenCV build with Java and Python bindings, but my image will only have Java.

Full credit and thanks to both bloggers for their work and diligent documentation!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:21 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi