Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Simple Custom Video Dashboard 30+ FPS (http://www.chiefdelphi.com/forums/showthread.php?t=82422)

TheDominis 08-03-2010 14:07

Re: Simple Custom Video Dashboard 30+ FPS
 
Sure...

It'll take me about 30 minutes or less...

or maybe longer... not much though

Robototes2412 08-03-2010 14:16

Re: Simple Custom Video Dashboard 30+ FPS
 
thanks

byteit101 08-03-2010 16:02

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by Robototes2412 (Post 933677)
thanks

my ZomB .net 2 port *SHOULD* be mono AND wine friendly (have not tested however)
http://www.chiefdelphi.com/forums/sh...ad.php?t=82612

EDIT: Mono migration tool says one error, but it is easily fixed, I'll post a mono-friendly version in about 3 minutes. void Receiver_OnImageUpdate () Image Image.FromStream (Stream, bool, bool) useEmbeddedColorManagement and validateImageData aren't supported.
EDIT2: posted at above url

TheDominis 08-03-2010 16:17

Re: Simple Custom Video Dashboard 30+ FPS
 
1 Attachment(s)
I have ported the video dashboard to 2.0 .NET as well as made it (most likely) Wine friendly. I also made the program more robust -- probably.

Please report any issues.

buchanan 10-03-2010 12:50

Re: Simple Custom Video Dashboard 30+ FPS
 
I read with some surprise the following thread:
http://www.chiefdelphi.com/forums/sh...ad.php?t=84087

I'll ask here: for the developers and users of this video dashboard, what networking setup are you using between the classmate and the machine displaying the video? Is it known to work under a real FMS?

TheDominis 10-03-2010 14:13

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by buchanan (Post 935198)
I read with some surprise the following thread:
http://www.chiefdelphi.com/forums/sh...ad.php?t=84087

I'll ask here: for the developers and users of this video dashboard, what networking setup are you using between the classmate and the machine displaying the video? Is it known to work under a real FMS?

The classmate displays my video. I get 30+ FPS.

hamosad1657 10-03-2010 14:49

Re: Simple Custom Video Dashboard 30+ FPS
 
How you get the screen on the "Driver" Account?
I opened it on the "Developer" account, and I got 5fps....

TheDominis 10-03-2010 14:55

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by hamosad1657 (Post 935253)
How you get the screen on the "Driver" Account?
I opened it on the "Developer" account, and I got 5fps....

Are you running the right executable on the developer account? If so, 5 fps makes no sense as we all have the same computer...

Vikesrock 10-03-2010 14:59

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by TheDominis (Post 935261)
Are you running the right executable on the developer account? If so, 5 fps makes no sense as we all have the same computer...

What resolution are you getting the 30FPS at? That may be one possible difference between your setup and theirs.

EDIT: Also how tough would it be to implement command line parameters for robot IP, and starting size and location of the window? I am looking at calling this from a Labview dashboard and while we could position it and enter the IP every time that seems a bit cumbersome. I would try it myself if I knew C#...

TheDominis 10-03-2010 20:42

Re: Simple Custom Video Dashboard 30+ FPS
 
1 Attachment(s)
Quote:

Originally Posted by Vikesrock (Post 935264)
What resolution are you getting the 30FPS at? That may be one possible difference between your setup and theirs.

EDIT: Also how tough would it be to implement command line parameters for robot IP, and starting size and location of the window? I am looking at calling this from a Labview dashboard and while we could position it and enter the IP every time that seems a bit cumbersome. I would try it myself if I knew C#...

I can make it take an IP from a file. I'll have a new binary posted in a few minutes.

Just create a file called smash-ip.txt in the start up directory and the first line will be the IP.

hamosad1657 11-03-2010 07:27

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by TheDominis (Post 935261)
Are you running the right executable on the developer account? If so, 5 fps makes no sense as we all have the same computer...

I have an Edimax router, maby it impressive the communication?

And how can I get it running on the Driver account?

TheDominis 11-03-2010 08:59

Re: Simple Custom Video Dashboard 30+ FPS
 
Quote:

Originally Posted by hamosad1657 (Post 935555)
I have an Edimax router, maby it impressive the communication?

And how can I get it running on the Driver account?

You'll have to set it as a start up program with Windows. As far as the router, I wouldn't have any idea.

All I can report is that I get 30+ FPS on our team's classmate. Perhaps you can change power saving options so that they are on performance.

Kingofl337 11-03-2010 21:27

Re: Simple Custom Video Dashboard 30+ FPS
 
What settings are you running on the crio? 320x240? Any compression?

Thank your for making this, the LV dashboard kills the poor classmate cpu.

buchanan 11-03-2010 21:52

Re: Simple Custom Video Dashboard 30+ FPS
 
For those getting mysteriously low frame rates one thing to check is the camera configuration. The Axis camera's video server has an option to limit the frame rate, and there may be (or have been) software floating around that reconfigures it without your direct intent..

Connect the camera directly to a computer that's configured with a 192.168.0.X IP address, and open the camera IP (192.168.0.90) in a web browser. Go to the video configuration page and see if the frame rate limiting is set.

This happened to us. When we first tried the camera, running direct to a web browser, it was real-time video fast. Later in the build season, running through the cRIO/classmate/video dashboard we were stuck at 2 FPS no matter what we did. Looking at the config page, guess what we found? We have no idea how it got that way.

TheDominis 12-03-2010 07:15

Re: Simple Custom Video Dashboard 30+ FPS
 
I use only the following code :

Code:

AxisCamera &camera = AxisCamera::GetInstance();
camera.WriteResolution(AxisCameraParams::kResolution_320x240);
camera.WriteBrightness(50);

As you can tell I used 320x240 at default compression (0 - I believe).


All times are GMT -5. The time now is 21:26.

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