![]() |
Servos controlling camera and purple screen
We are having two problems with our camera. We aren't exactly sure how to get the servo motors to move so the camera can track a target. Our camera is able to track targets fine with labview but there's just no movement in the servos. We connected them to pwm01 and pwm02 and used the default 2006 camera code.
Our other problem is when we load the settings for the camera to track the green lights. when we click "grab frame", the image comes out completely purple. If we load the default settings for the camera then the picture comes out fine. Any ideas? |
Re: Servos controlling camera and purple screen
Quote:
If you want LabView to be able to track the green light, you will need to use the servo outputs on the camera instead of sticking them into pwm01, and pwm02. There is however the question if this is legal with the rules, as currently that is unknown. |
Re: Servos controlling camera and purple screen
I found that the screen will be purple unless you calibrate in RGB mode, and then calibrate in YCrCb mode. That worked for us, anyway.
|
Re: Servos controlling camera and purple screen
Using the supplied calibration and YCrCb mode, the camera view does seem completely purple, but bright fluorescent lights can be seen as a somewhat reddish purple, and the green target will actually appear as a faint bit of bluish purple.
That bluish purple is easily tracked by the camera against the less bluish purple background. |
Re: Servos controlling camera and purple screen
Quote:
Also, we still hade problems with slight detections of other lights. The noise filter was not working well enough, so I corrected this by modifying Code:
if(T_Packet_Data.my != 0) |
Re: Servos controlling camera and purple screen
Quote:
Sorry for the delay on getting it posted. We are trying to get a site approved to host the VIs that everyone can get to. Some people have restrictions getting to FTP sites. For you kids out there who are interested in what that problem is and how you can fix it, Google for "YUV RGB conversion" or "YCrCb RGB conversion". You'll find plenty of information about it. You can then try fixing it in the version you have by implementing the 3 equations. You can also download the fix tomorrow and see how I chose to implement it. Consider it a challenge. Play around with LabVIEW and you'll see just how powerful and easy to use it really is. Best of luck! -Joe |
Re: Servos controlling camera and purple screen
OK... the new version is posted here. It supports a few new features and the purple bug fix. Read about it and enjoy.
Cheers! -Joe BTW, did anyone look at the problem to see if they could solve it? |
| All times are GMT -5. The time now is 07:30. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi