• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

quickie; how to show integer in window

I want to show integer Framerate by the FPS in the preview window for video...How do I do this?

cvNamedWindow("Cam View", 1);
cvShowImage("Cam View               FPS:", NIRImage);

Thanks in advance,

WLE
0
Wanderinglazyeye
Asked:
Wanderinglazyeye
1 Solution
 
jkrCommented:
If you want to display the FPS value e.g. in the status bar, you could

bool MVMFrmApp::OnInit()
{

    MVMFrm* frame = new MVMFrm(NULL);
    SetTopWindow(frame);
    frame->CreateStatusBar();
    frame->Show();

    return true;
}

and then

int framerate = 42;
wxString str;

str.Format("%d", framerate);
frame->SetStatusText(str);
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now