Run OpenCV application without console window - opencv

How can i start a OpenCV application without the console window in background? I have a app that uses the webcam and i would like to see only the webcam window.
Thank you.

You get a console window because the program you created is a console program, this has nothing to do with OpenCV. You need to change the type of your program from console to standard (windowed) Windows.
This SO post lists the different solutions to do this, but the easiest is to change your main() function name to WinMain().

You should use this
int main(){
FreeConsole();
}
it work fine, checked :)

Related

Hide Console Window in Dart on windows

I want to build an application with Dart in Windows.
How to hide the console window when application will be start? Like a background service.
Thanks.
It is kinda a hack where the console window will flash really quickly since the program will spawn the console window but the first line will then hide it again:
import 'package:win32/win32.dart';
void main() {
ShowWindow(GetConsoleWindow(), SW_HIDE);
// Your program...
}
But the rest of your program will then run in the background.
(Inspired by: https://stackoverflow.com/a/9618984/1953515)
Another ("hacky") solution could be to do what is suggested in the following where we do a change on the generated exe file from dart compile exe with editbin.exe: https://stackoverflow.com/a/2435907/1953515

View trace() result on iOS

Where does haxe output when calling trace() on iOS? With Android, I can see what I've traced with logcat, and in the output panel of FlashDevelop on neko and flash. I've tried going through the console, but I can't find anything. Sys.println() doesn't seem to output to the console, either.

Dart: debugging dart app doesn't work from within WebStorm, running works fine

I am using webstorm. And I have setup a small sample app. Running the app displays the following in the output window
C:/dart-sdk/bin/dart.exe --ignore-unrecognized-flags C:/Users/testuser/WebstormProjects/TestDart/TestMe.dart
You are using Windows
Process finished with exit code 0
but when debugging it just sits there with the following output
C:/dart-sdk/bin/dart.exe --ignore-unrecognized-flags --debug:57939 C:/Users/testuser/WebstormProjects/TestDart/TestMe.dart
I have a breakpoint set in the main() funciton on this line, but it never hits it
stdout.write("You are using ");
I have no firewall and also I don't think i need dartium installed as this is just a standard console application that prints things out.
Anyone have any success?
thanks
Debugging Dart console application doesn't currently work:( Please watch WEB-9937 to be notified on any progress

Blackberry console output

I am new in black berry development, just like console output in J2me development and log cat in Android to see the event log of the simulator, is there anything for Blackberry so that I can keep a track on application logging on Blackberry.
We can use System.out.println to print something to console.
Also we can use EventLogger to log events to device system log (to view the current event log for the device, go to home screen hold down the ALT key and type "lglg"). Its more fun since we can filter logging by source and priority. Event log file also may be downloaded from device with command:
javaloader.exe -u eventlog > eventlog.txt
See article about javaloader
Also, consider to use some custom logging with microlog lib.
You can use System.out.println() and it will appear in the output window in Eclipse. I would suggest putting some wrapper class around it to emulate some of the features of LogCat, such as making static methods that tag each with [DEBUG], [ERROR], stuff like that. Also, there will be a good bit of other debug output from the simulator/device, so find a way to distinguish your logs (I prepend ========== to each of them so I can see it quickly).

How to read from an external console application?

I have a console application that I didn't write. Is there some easy way to read from it?
I need to have the input still on the console window, but read what's being displayed.
I care not whether the output displays to the console or not, so long as the input still works.
Console Application Runner Classes are excellent to control the console application processes and to redirect input and output where required.
I had a project that is doing the same thing. I have a console application written in VB.Net and I run and capture it's output using my Delphi application. I have successfully achieved this by following this tutorial by Zarko Gajic.

Resources