I am trying to call feature detectors from OpenCV in my C++ application written in Visual Studio. I would like to run this operation in the background and do not care about its timing. Actually, I prefer if it is not interfering with the main performance of the application. To this end, I perform the feature detection in a separate thread and tried to lower the priority of the thread with the command SetThreadPriority(). This is however not working, and while the OpenCV function is running, all the CPU cores are maxed out. Is there any way to control the priority of the tasks in OpenCV or even limit the CPU cores involved in its process?
Low priority job in OpenCV
311 Views Asked by Abtin Rasoulian At
1
There are 1 best solutions below
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in MULTITHREADING
- new thread blocks main thread
- WPF MessageBox Cancel checkbox check
- How to avoid concurrent access to a resource?
- run oncomplete event in async
- Threading Segfault when reading members
- Function timeouts in C and thread
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Acumatica perfomance with threads
- Wait and Notify in Java threads for a given interval
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
- How to return blocking queue to the right object?
- background thread using Task.Run
- deletion and cleanup of worker thread in Qt crashes
- Pipeline-like operation using TChan
- implementing in app purchase on android
Related Questions in OPENCV
- segmentation fault: 11, extracting data in vector
- Disable OpenCL in OpenCV completely
- Python - Writing your own function with opencv giving an error
- Opengl Augmented Reality in Android from solvepnp
- OpenCv Multispectral Image openCV
- Displaying bitmap image on Android (OpenCV)
- Applying homography on non planar surface
- BackgroundSubtractor getBackgroundImage() function return empty Image
- How to choose good SURF feature keypoints?
- opencv python error: Assertion failed (size.width>0 && size.height>0)
- CIDetector to filter rectangle and get cropped image
- How to detect squares in video with OpenCV?
- Python OpenCV error: (-215) size.width>0 && size.height>0 in function imshow
- OpenCV algorithm of contours searching and creation of bounding rectagle
- OpenCV Opening/Closing shifts the positions of the pixels
Related Questions in VISUAL-STUDIO-2008
- Automatically Compile .Net UserControls
- Error code 31 returned from mt.exe when building C++ projects in Visual Studio 2013
- Issue with Referenced DLL's on compiled EXE in Visual Studio 2008
- How can I prevent picture boxes from intersecting, while they are in constant movement?
- Microsoft TFS and Visual Studio 2008 - project hierarchy changing on server
- Disable clock edit on windows 6.5
- How to static link EDK II library into application in Visual Studio 2008 tool chain
- MFC Feature Pack 2008 CPaneDialog as CDialogBar
- Can we highlight single word of from Text Property (have multiple words)of Label Control
- Getting exception while compiling in 64bit visual studio 9.0 sp1
- Error LNK2019 LNK2001
- Desktop Shortcut Icon is different than Application Icon
- Trying to reduce size of memory allocations in debug compilations for C++
- c++ wofstream issue in unicode program
- How to set parameters as optional while adding crystal reports in central management consol
Related Questions in THREAD-PRIORITY
- Default priority of thread with SCHED_FIFO
- Thread priority in Python
- Any relationship between process priority and thread pool priority (C#)
- Custom OS interrupt like ctr + alt + delete
- Low priority job in OpenCV
- Can you define the task priority?
- Condition variables and real time priorities in pthreads
- Thread priority does not work as expected?
- Ultra high priority background work or QUARTZ accuracy
- android cgroup doesn't work for thread priority?
- How to upgrade the priority of a UDP receive on Android Delphi Firemonkey
- How to implement a (low priority) scheduled workstealing ExecutorService?
- Process Priority vs Thread Priority
- How to give priorities to Interrupt handlers in a normal linux kernel?
- Give priority to the (software) time stamping thread in e1000e net driver
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Although I didn't find any way to reduce the priority of an
OpenCVjob, I could reduce the CPU usage by usingsetNumThreads(int numThreads).