Go to Post There are simply not enough words to say how much the contributions of Dave and Woodie have given to FIRST, and countless students across the world. - Libby K [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 Rating: Thread Rating: 2 votes, 3.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2012, 03:37
jviolette123 jviolette123 is offline
Registered User
FRC #1318
 
Join Date: Feb 2012
Location: Issaquah, WA
Posts: 10
jviolette123 is on a distinguished road
Re: JavaCV and OpenCV Camera Calibration with sample code

Suppose your camera was a somewhere in mid-field.

If the camera were looking directly at the backboard, that is, your rectangle is in the center of the field of view, then you would get a large reading for the pixel count, indicating you are close to the backboard.

If the camera were looking off to the side, then your rectangle is at the edge of the field of view. The rectangle would be smaller by up to 25% in pixel count than at the center. Any calculation based on that smaller number would say that you are farther than you really are.

The answer you get at the same distance depends on where the backboard is in the field of view. You can correct for that after the fact, or you can correct the image in the first place. We chose to correct the image.
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2012, 07:47
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,748
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: JavaCV and OpenCV Camera Calibration with sample code

I understand what calibration is and the benefits, but I had assumed that it was rather expensive, and not all that necessary.

Do you expect the robot to shoot at targets near the edge of the camera?

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2012, 12:13
jviolette123 jviolette123 is offline
Registered User
FRC #1318
 
Join Date: Feb 2012
Location: Issaquah, WA
Posts: 10
jviolette123 is on a distinguished road
Re: JavaCV and OpenCV Camera Calibration with sample code

Depending on the robot's distance from the backboard, the rectangle moves up and down in the field of view. Also, depending on the tilt of the camera, the rectangle may be anywhere on a vertical line at the time of launch. We should be able to get the side to side alignment fairly close.

Some correction due to vertical placement seems to be required. Depending on the processing configuration, when this happens might change. If the cRio is doing the image work, it may be reasonable to do this correction after the fact. A coprocessor off the cRio may have enough cycles to correct up front, and simplify the geometric calculations.
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 10:43.

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