Problems with OpenCV Draw Axis function
I am detecting the charuco boards using the OpenCV Contrib 4.10.0 version. Once I have detected and estimated its pose, I am trying to plot the axis; however, I can see different axis if I change their lengths even if everything remains the same. I am providing a sample image, camera params and code to reproduce. Take a look a the attached images as well.
I’m trying to solve a captha image I downloaded by editing a code on github
import pandas as pd import numpy as np import cv2 import glob import imutils from imutils import paths import os import os.path import sys captcha_image = (“C:/Users/xxxxx/Documents/PythonProgramming/IG/nothing.jpg”) # Load the image and convert it to grayscale image = cv2.imread(captcha_image) gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # grab the base filename as the text filename = os.path.basename(captcha_image) captcha_text […]
removal of lines in an image using Python
I am trying to use Python and cv2, numpy, skimage, etc to remove a ‘shadow line’ from a black and white image if one exists in the image. Essentially my image can have 1 or 2 curved lines like the examples below. But each of those lines has a shadow line with 1-5 pixels away that needs to be removed. How can I do this in Python?
Use OpenCV to stitch 2d histograms – Merge cv2.detail.MatchesInfo
I am attempting to stitch multiple 2d histograms (2d data arrays) together for which the horizontal and vertical axes of the histograms are spatial coordinates, but the origin for the different histograms may vary. This task therefore requires affine transformations after identifying matching features, for which a slightly modified OpenCV stitching pipeline (https://github.com/opencv/opencv/blob/4.x/samples/python/stitching_detailed.py) is used.
Extract Shapes from an image with black background
I have a task to bulk extract shapes from an image. The image is with black background and the shapes are with white border.
Python – errors when calling cv2.ml.TrainData_create(): – responses data type = 19 is not supported – Expected Ptr for argument ‘responses’
I am following the following tutorial:
https://www.opencvhelp.org/tutorials/deep-learning/training-models/
Unable to open video with OpenCV python
I am unable to open a .avi
video file with OpenCV python. In my head it is a very simple task, but for some reason, I am unable to open the file.
Using scenedetect to spot subtle cut edits in a video?
I’m trying to use the Scenedetect Python package to detect subtle cuts in a video. For example, I’m looking at this video:
inverted rows,cols in cv.resize
I don’t understand why the np.shape passed to cv.resize needs me to swap the tuple elements:
Using Opencv imshow inside a for loop
I have a folder with images which I read sequentially and save them to another folder, using a for loop.