Questions tagged [opencv]
OpenCV (Open Source Computer Vision) is a cross-platform library of programming functions for real time computer vision.
137 questions
4votes
1answer
342views
Optimizing Image Processing in OpenCV: Using cv::Mat with Reference Counting Mechanisms and C++ ref qualifiers
I have questions regarding this code: As the cv::Mat copy constructor involves only pointer copying due to the reference counting mechanism, in the ...
5votes
2answers
82views
Filipino Sign Language Recognition System Using MediaPipe & TensorFlow
I am working on a sign language recognition system that processes pre-recorded video datasets to extract hand gesture features for AI training. I am using MediaPipe, OpenCV, and TensorFlow to extract ...
6votes
1answer
75views
Command Line Photo Size Reduction Tool - version 3
This is the third version of the photo size reduction tool for code review. The previous reviews are Resize 200 photos quickly in C++ using opencv and Photo Reduction Tool version 2 - Possible ...
7votes
2answers
115views
Photo Reduction Tool version 2 - Possible reinvention of the wheel
The code is a Linux command line photo size reduction tools. It reduces the size of all the photos in a directory. It may work on Windows 10, but it has not been built or tested on Windows. It takes ...
6votes
2answers
175views
Resize 200 photos quickly in C++ using opencv
I have about 200 photos that I need to up load to a WordPress website. When I tried up loading the second one I got an error message that the file was too wide. Apparently WordPress limits the width ...
2votes
3answers
185views
Optimizing a for loop for changing pixels values using lookup table
I tried to parallelize the loop, and I got a good result but still not enough. This post is a follow up to a recent one where I optimized other parts of the code using a lookup table and spacial and ...
10votes
1answer
205views
Movie Barcode Generator
Task I wrote a movie barcode generator in C++ using OpenCV. Self-described engineer, space lover and tea drinker Thomas Poulet defines a movie barcode as follows: A Movie Barcode is the color ...
6votes
2answers
650views
Histogram manipulation
I want to optimize the code to run faster, so I started with parallelizing the for loops, but the code still not very fast. I do get variable frames per second, ...
2votes
0answers
44views
Convert Image Class to OpenCV Mat Data Structure in C++
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to build the bridge to perform the conversion between the ...
3votes
0answers
62views
OpenCV for Faster Background Recovery in Watermark Removal
I am working on a watermark removal project using OpenCV in C++. The goal is to recover the background from a composite image by separating it from the foreground (watermark). The code processes the ...
1vote
1answer
142views
Corner detect takes long time to run
I am using OpenCV’s findchessboardcornersSB function to find the corners in the image. I am using below code/ header file: ...
10votes
1answer
733views
Remove hot-spots from picture without touching edges
In the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue ...
6votes
1answer
475views
Image stitching using SIFT keypoint descriptor and homography matrix
I have written a code to stitch 2 images using SIFT keypoint descriptor and homography matrix for perspective transform. Are there any areas where code an be improved or optimized? ...
2votes
0answers
191views
Control your laptop using hand gestures
This program uses webcam to track hand movements / gestures and sends corresponding mouse / keyboard events to the computer. I use it to switch spaces, move active window between desktops, scroll ...
1vote
2answers
494views
Bilinear interpolation optimized using intrinsics
I have found that a bottleneck of the OpenCV application I use is the bilinear interpolation, so I have tried to optimize it. The bilinear interpolation is in 8D space, so each "color" is an ...