Go to Post The robot can inflate the ringer. How cool is that? - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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!  
Unread 01-16-2016, 06:43 AM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Corrupt jpg data when using OpenCv on roboRIO

Hello, we are trying to stream our usb camera image to a piece of open cv code on the robot using 2168's vision library and example code. We have everything compiled successfully and running, however when we try to grab a frame from the camera it says:

Code:
Corrupt Jpeg data: x extraneous bytes. 0.07 seconds to capture frame.
I have a feeling this is because we had the same issue before when trying to get the camera frame from two different places. However, I dont see this being an issue unless the smart dashboard is automatically trying to get the camera image.

GitHub repo: code

Thanks, Drew.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-16-2016, 05:52 PM
jreneew2's Avatar
jreneew2 jreneew2 is offline
Alumni of Team 2053 Tigertronics
AKA: Drew Williams
FRC #2053 (TigerTronics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Vestal, NY
Posts: 189
jreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura aboutjreneew2 has a spectacular aura about
Re: Corrupt jpg data when using OpenCv on roboRIO

Alright, we have solved our issue above, however we ran into another issue when saving an image from the sub camera to the roboRio. Whenever we save an image through converting the image to a mat and using imwrite, all we get is a uniform gray image. We can get a regular image to the smart dashboard using the camera server class without modification, but as soon as we bring it into Opencv, it breaks the image.


Any suggestions?
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 09:16 AM.

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