Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Simple Camera code HELP PLEASE? (http://www.chiefdelphi.com/forums/showthread.php?t=74598)

excel2474 15-02-2009 20:54

Simple Camera code HELP PLEASE?
 
I've spent hours reading and testing code to track the camera. I'm using windriver, and i'm not tying to do anything to complicated. I started with just compiling and downloading the example codes to the robot, but when I put the target in front of the camera, nothing happend. All I want to know, is how to find a color( green or pink or both) and if the camera sees it, turn on a motor. Can someone show me some commented code that will do this? Thanks a lot for the help because I'm desperate.

Billfred 15-02-2009 21:22

Re: Simple Camera code HELP PLEASE?
 
For the record, I nudged this over to the WindRiver subforum to keep things orderly. :)

excel2474 15-02-2009 21:33

Re: Simple Camera code HELP PLEASE?
 
Quote:

Originally Posted by Billfred (Post 821600)
For the record, I nudged this over to the WindRiver subforum to keep things orderly. :)

The problem with the subforums is that the post doesn't show on the portal page. At least that was my experience.

Billfred 15-02-2009 21:51

Re: Simple Camera code HELP PLEASE?
 
Quote:

Originally Posted by excel2474 (Post 821614)
The problem with the subforums is that the post doesn't show on the portal page. At least that was my experience.

That happens when forums get added--they don't get added to the portal lists by default. Click "Config" on the top of that list and it can be made to show. :)

Greg McKaskle 16-02-2009 00:22

Re: Simple Camera code HELP PLEASE?
 
I'd say the vision example code is probably the most likely to work out of the box as anything. Next step is to put some print statements where the object center is found to try and determine if it is a watchdog, electrical, or code issue.

Greg McKaskle

excel2474 16-02-2009 10:11

Re: Simple Camera code HELP PLEASE?
 
Quote:

Originally Posted by Greg McKaskle (Post 821768)
I'd say the vision example code is probably the most likely to work out of the box as anything. Next step is to put some print statements where the object center is found to try and determine if it is a watchdog, electrical, or code issue.

Greg McKaskle

OK, where is the printf displayed at. I couldn't figure this out.

Greg McKaskle 16-02-2009 19:42

Re: Simple Camera code HELP PLEASE?
 
I haven't used WindRiver in a long time. I think there are two possible locations. The low level one is the terminal program hooked to the serial port. I think you can also open a terminal over enet in the Eclipse environment. Sorry, but I can't give you any details on that one.

Greg McKaskle

dboisvert 16-02-2009 21:48

Re: Simple Camera code HELP PLEASE?
 
You can do it remotely by going connecting to the cRIO in the bottom left corner of the Remote Systems and after that right click "Wind River Target Debugger" go to > Target Tools > Target console.

A dialog box should open up, click ok and then you should see your printouts. They come rather quickly so be prepared for it.


All times are GMT -5. The time now is 02:50.

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