73,457
questions
0
votes
0
answers
18
views
Working on slicing the videos using opencv facing isseues
Hi all I am working on a project where I am generating notes from slide-based videos but during slicing the video based on the page transition the code is not working properly that is it is either not ...
0
votes
0
answers
36
views
Check to see if the circles are concentric with OpenCV
enter image description here
We can see several concentric circles:
The outermost circle is black, likely the outer casing of the device.
Next is a brighter circle, which be made of metal.
Inside, ...
0
votes
1
answer
50
views
Repeating a pattern sample using ORB feature matching with Open CV
I am trying to take a wallpaper sample with repeating features and generalize the pattern on a larger canvas, by using ORB or SIFT feature matching to basically map the sample onto the edges of itself ...
0
votes
0
answers
36
views
Install OpenCV dev for ubuntu in Release Mode
I'm working on a project that generates a library C++ that will be shared to other teams.
This library depends on OpenCV
To develop this I'm using a Docker image based on Ubuntu and installing ...
-6
votes
0
answers
45
views
LNK1104 when compiling OpenCV program? [closed]
#include <iostream>
#include <fstream>
#include <vector>
#include <iomanip> // for std::hex
#include <opencv2/opencv.hpp> // OpenCV for image handling
std::string ...
0
votes
1
answer
65
views
How to crop image along a contour line drawn by opencv?
I have an image with drawn contour. How to crop the image along the drawn contour line? This is the picture with contour drawn on it
I want to crop along the contour line:
I tried to use the ...
0
votes
1
answer
51
views
How to identify black border of photo and remove this border?
I need to detect black border in image. I tried to detect it using OpenCV, but the results were not good.
Code here:
import cv2
import numpy as np
import matplotlib.pyplot as plt
from skimage.filters ...
-2
votes
0
answers
45
views
Opencv camera capture with python3 on Raspberry pi 3B+
Having trouble running OpenCV frame capture on Raspberry Pi 3 B+.
I have installed OpenCV 4.6.0 and Python 3.11.2 on Raspberry Pi OS. (Linux version 6.6.47+rpt-rpi-v8)
This is the Python code being ...
1
vote
0
answers
39
views
Question about the Suzuki and Abe contour finding algorithm
Let us say that we have the following grid:
0 0 0 0 0 0
0 1 1 0 0 0
0 1 1 1 0 0
0 1 1 0 1 0
0 0 0 0 0 0
Then as we are following the border clockwise (say we re-label the border pixels to 2), don't ...
-1
votes
1
answer
42
views
why that is receive "Your session crashed. Automatically restarting." at Google-Colab whereas I am using GPU
I want to read a camera with cv2.
This is my code:
import cv2 as cv
cv.namedWindow('mah Window', cv.WINDOW_NORMAL)
source = cv.VideoCapture(0)
while(1):
ret, frame = source.read()
if not ret:
...
0
votes
0
answers
47
views
Channels of the image before and after conversion have not changed
I use OpenCV to read an RGB image and going to print it by matplotlib. So, I use the cvtColor to transfer the BGR(As I know, the imread ofen reads BGR channels) to RGB. But after print, i checked the ...
0
votes
1
answer
33
views
How to crop images within the drawn boundary by cv2?
I want to crop the images which were defined by the boundary lines drawn by cv2.The current script can accurately detect and draw the boundaries on the picture, but I found it's hard to crop the ...
0
votes
1
answer
45
views
how can i save a video produced with cv2.VideoWriter at Google-Colab to a Google Drive path?
I am trying to somehow copy the "video1.mkv" at a folder called "my folder".
There are better ways to copy but my tend is to read "video1.mkv" and create a new video by ...
0
votes
0
answers
34
views
Unable to open a new webcam connection in OpenCV from a while loop
I'm trying to make an application that can switch between webcam feeds. I put the webcam functionality into a Class, and it creates the VideoCapture object when the class is created.
When I initialize ...
2
votes
0
answers
58
views
Quantifying uncertainty in area measurements with python opencv
I'm attempting to use OpenCV in combination with a cheap USB microscope for real-time measurements of the area of samples we prepare via foil rolling, and are currently measured using calipers. Due to ...