Go to Post If poker is a sport, robotics is definitely a sport. - EricH [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 22-03-2013, 21:00
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Custom Pixel-By-Pixel Vision Processing

We've been doing vision processing via a HTML server, but the problem is the drivers don't like to use all of the programs including RoboRealm so we want to do it in Java. ColorImage does not support per-RGB scanning but Squawk doesnt support BufferedImage. any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-03-2013, 13:51
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 431
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Custom Pixel-By-Pixel Vision Processing

Last year one of our students wrote image processing code in Java.
We used the command based robot template. The camera Code resides within a subsystem.

The code is available here for reference:
https://gist.github.com/jcorcoran/5228621

Hopefully that helps get you moving in the right direction.

Something to watch out for is performance. The frame rate can get pretty low for image processing running cRIO side. You may want to look at performing your vision processing using openCV through the smartdashboard. Vision processing code would run on on your driver station laptop in this case. There are plenty of good resources on driverstation side image processing code.

http://www.chiefdelphi.com/forums/sh...ght=341+vision
https://code.google.com/p/frc2012-te...i/VisionCoding
__________________
http://team2168.org
Reply With Quote
  #3   Spotlight this post!  
Unread 25-03-2013, 15:55
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Custom Pixel-By-Pixel Vision Processing

Quote:
Originally Posted by otherguy View Post
Last year one of our students wrote image processing code in Java.
We used the command based robot template. The camera Code resides within a subsystem.

The code is available here for reference:
https://gist.github.com/jcorcoran/5228621

Hopefully that helps get you moving in the right direction.

Something to watch out for is performance. The frame rate can get pretty low for image processing running cRIO side. You may want to look at performing your vision processing using openCV through the smartdashboard. Vision processing code would run on on your driver station laptop in this case. There are plenty of good resources on driverstation side image processing code.

http://www.chiefdelphi.com/forums/sh...ght=341+vision
https://code.google.com/p/frc2012-te...i/VisionCoding
No... our current camera image code is fine :\ manufacturer grade quality at that, its just that the drive team doesn't like using custom dashboards so we cant do offboard processing and we need to do it onboard, but dont want to use the sloppy nivision libs and do custom pbp.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-03-2013, 20:11
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Custom Pixel-By-Pixel Vision Processing

I'm curious what you find sloppy about nivision?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 02-01-2017, 23:38
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 29
AMendenhall is an unknown quantity at this point
Re: Custom Pixel-By-Pixel Vision Processing

Quote:
Originally Posted by Greg McKaskle View Post
I'm curious what you find sloppy about nivision?
I don't find the NIVision libs sloppy; just unusable for any complex operations. So far as I know and have experimented, there is no way to interact with NIVision.Image type images except through NIVision methods. Also, there's no way to create NIVision.Image type images other than with a webcam. Not only does this drawback leave many (including me) with no option other than using external libs, it makes CameraServer, which is compadible only with NIVision.Image images, useless. Please, if I'm wrong, correct me. I would like to use the utilities provided by default if I can.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-01-2017, 09:51
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: 361
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: Custom Pixel-By-Pixel Vision Processing

Quote:
Originally Posted by AMendenhall View Post
I don't find the NIVision libs sloppy; just unusable for any complex operations. So far as I know and have experimented, there is no way to interact with NIVision.Image type images except through NIVision methods. Also, there's no way to create NIVision.Image type images other than with a webcam. Not only does this drawback leave many (including me) with no option other than using external libs, it makes CameraServer, which is compadible only with NIVision.Image images, useless. Please, if I'm wrong, correct me. I would like to use the utilities provided by default if I can.
1. We used nivision for some pretty complex stuff last year.
2. Have you seen imaqCreateImage? Or the (somewhat useful) documentation in Program Files\National Instruments\Vision\Help?
3. It's really not that hard to implement CameraServer yourself. It's literally just the bytes 1 0 0 0 followed by a 32 bit integer n, followed by n bytes of a jpeg image. Over and over on a tcp stream
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #7   Spotlight this post!  
Unread 08-01-2017, 21:33
AMendenhall AMendenhall is offline
Registered User
FRC #3925
 
Join Date: Sep 2015
Location: Ventura
Posts: 29
AMendenhall is an unknown quantity at this point
Re: Custom Pixel-By-Pixel Vision Processing

I stand corrected
I suppose that I didn't look into NIVision deeply enough.
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 12:14.

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