|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using c++ to make a real time application?
Hi ppl.. I need help regarding to using visual C++ to come out with an real time application to track object using a stereo vision camera? Can anyone help??
|
|
#2
|
|||
|
|||
|
Once you have written and debugged your application, you can go back and make it faster for real time processing. Keep in mind as you write the software that it WILL be a real time application, so you are constantly asking yourself "is this an efficient way to do this? did I need that self-validating, memory managing, heavy handed container or would an array do it?" and similar questions.
Part of real time programming is buying hardware that can do the job in time; if you have the best algorithm in the world and drop it onto a 80386, it will only go so fast. For the problem you are solving, you need some decent power, probably at least a solid quad core with a cleaned OS (get rid of the background windows junk), lots of ram, good video capture cards, etc. |
|
#3
|
|||
|
|||
|
There's an old saying that real-time has only two speeds: fast enough, not fast enough. The only way to guarantee fast enough is to carefully control what is competing for computer resources. A general purpose operating system (gpos) like Windows, Mac OS, and vanilla Linux are designed to maximize throughput (where speed is a spectrum from slow to fast). At any critical moment, though you have the most optimized algorithm in the world, a gpos will decide to run a virus checker or service the ethernet device.
If you have no choice but to use windows, Jonnin's advice is the best anyone can give you. If you can use a real-time operating system (there are free Linux RTOS's out there),you'll have more luck. Sometimes a "federated" approach is best: use a micro-controller for the real-time tracking and control for the cameras and have it send data over ethernet (use UDP) to your Windows machine to display for humans to see. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Grid view sorting based on the date time column in c# windows application | Aazaad | .NET | 3 | 04-08-2009 12:45 PM |
| SYSTEMS PROGRAMMER - Job Opening with the City of Los Angeles | City of LA | Careers | 0 | 10-14-2008 03:46 PM |
| Looking for a Real time Stock (product) counter | itsartdammit | Java | 0 | 10-05-2006 04:57 AM |
| How to make application installer on vb.net? | robertsky_02 | .NET | 2 | 05-31-2006 04:38 AM |
| REAL Software Announces Linux Strategy - Enables Migration of VB Apps to Linux | Gwen Smith | vb.announcements | 0 | 07-21-2003 03:17 PM |