Skip to main content

Questions tagged [opencv]

Open Source Computer Vision Library (OpenCV) is an open source machine learning library used primarily for computer visions applications. OpenCV contains over 2,500 optimized algorithms (including state of the art computer vision ones).

47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
0 answers
3k views

Python : Feature Matching + Homography to find Multiple Objects

I'm trying to use OpenCV via Python to find multiple objects in a train image and match it with the key points detected from a query image. For my case, I'm trying to detect the tennis courts in the ...
Reward's user avatar
  • 91
3 votes
0 answers
313 views

Importing TensorFlow trained model in OpenCV

I want to import a TensorFlow pretrained model in OpenCV dnn C++ module. How can this be done? Are there any examples available?
Naser Piltan's user avatar
2 votes
0 answers
1k views

Difference detection between two images

I am trying to compare two images and detect the difference between them whether in shape or color. -The change in shape: the number of parts has changed ( increased or decreased). -The change in ...
fracv's user avatar
  • 21
2 votes
0 answers
33 views

orientation detection - images of govt. issued documents

Trying to figure out a macro approach to detecting the orientation of documents that works across document types (maybe a pipe dream). We successfully used SIFT to detect orientation in documents ...
Vikram Murthy's user avatar
2 votes
2 answers
57 views

shapes recognition for shapes formed by dotted points

In the image, below right corner there is circle shape and triangle shape made with set of co-ordninates.I have searched extensively in the net for algorithm or approach to classify shape correctly ....
Papasani Mohansrinivas's user avatar
1 vote
1 answer
21 views

Tracking people problem

I am trying to implement a system for counting people in a building using Python and OpenCV, but I have one problem. The system for tracking people doesn't work very well; it can't track a person all ...
user163895's user avatar
1 vote
0 answers
86 views

Highlight specific paragraphs from documents

I have a bunch of documents in which I want to highlight certain paragraphs/keyphrases. I have a list of the most frequently appearing sentences and I want to search for these paragraphs/keyphrases in ...
spectre's user avatar
  • 2,165
1 vote
0 answers
46 views

Which library is better to go with for text recognition(CNN+RNN+CTC), OpenCV vs Keras vs Tensorflow?

I want to build a model to recognize text form images, for this purpose I need CNN stacked with Bidirectional LSTM and CTC. I would like to know which library would be better and how?
maryam mehboob's user avatar
1 vote
0 answers
764 views

Real distance between bounding box centers

Assume that I have a camera pointing in a specific direction. I know the Euclidean distance (Real world distance) of the camera to a fixed point, X (mm). Using ...
Serge de Gosson de Varennes's user avatar
1 vote
0 answers
111 views

crop part of image from image, change it and put it same place in original image

I have image (think of image of small plant) with bounding box. For data augmentation I want to rotate (45 degrees) the image (plant) in bounding box, and place it at same place in original image. so ...
venkysmarty's user avatar
1 vote
0 answers
342 views

Using machine learning to find the most similar image that contains another image

As the title states I want to use ml (maybe some kind of CNN autoencoder?) to find the most similar image (I have a list of 10k+ images) within another image. I am currently just using opencv with ...
mike_gundy123's user avatar
1 vote
2 answers
378 views

Facial recognition on offline images

I want to do facial recognition on wide varieties of images captured at various ages of my family members. Below are some of the questions I have. If a person uses glasses of different types, do I ...
Akash's user avatar
  • 235
1 vote
0 answers
27 views

Object identifaction with trained CV model

I am rather new to Computer Vision and Neural Networks, but I already build the following setup: I have a robot which crawls through the grass with a live video feed. I build an OpenCV filtering and ...
seb2010's user avatar
  • 11
1 vote
0 answers
231 views

Detect the presence/absense of simple components from a circuit board using object detection

In this case I have a challenge of inspecting a recently mounted product, using computer vision, to detect the absence of any component that I have to check. For this task, I tried the concept of ...
denisb411's user avatar
  • 123
1 vote
0 answers
163 views

Paragraph extraction from text

I am trying to separate scanned pages of a 3 column book into paragraphs. On the pages there can be images located in an arbitrary location, occupying part of one, two or all three of the columns. ...
dmayilyan's user avatar
1 vote
0 answers
138 views

Improve results of image stitching using OpenCV (material science)

I'm trying to improve image stitching results with a series of pictures taken via microscope. The object I've photographed is a 3D printed cube that has a number of repeating shapes on the surface. ...
jsifferman's user avatar
1 vote
0 answers
34 views

how to update a face recongition ( e.g facenet)

I'm searching for a face recognition that detects new faces not just faces getting from the datasets, for example, facenet is a project that can detect and recognize a face from labels. I would like ...
abdou_dev's user avatar
  • 153
1 vote
0 answers
790 views

how to resize image without changing DPI in opencv for detecting text and feeding into OCR?

i resized the image using open cv and it changed the dpi of the image from 300 dpi to 90 dpi . What is the correct way to resize image without changing its dpi in open cv . if we feed the resized ...
star's user avatar
  • 1,481
1 vote
3 answers
3k views

Detect blur image using ssdmobilenet and tensorflowlite

I have clear images of cards vs blurry images of card. My task is to capture photo when the image is not blurry, as you can see from the description I need this code to run in real time on android ...
Ajinkya's user avatar
  • 235
1 vote
0 answers
1k views

Implement and train YOLO 3 with Opencv and C++

I want to implement and train YOLO 3 with my dataset using Opencv and C++. I can't find an example to start with, or a tutorial to explain how to train YOLO with my own data. All of the tutorials I ...
all.west's user avatar
1 vote
0 answers
52 views

Semantic Segmentation using Scipy or Scikit-image

Many days ago I saw a user using scipy function to get region of interest (RoI) in an image using different colors. I believe it was some sort of filter. Now I'm trying to do the same but I'm not able ...
Nikhil.Nixel's user avatar
1 vote
0 answers
222 views

How to detect only the lane boundaries using Hough transform?

This is my code to detect the lane boundaries. But only one line(left most) is detected here. Is there a way to remove other objects from the picture (remove bushes and trees) and detect only the ...
Kushani5j's user avatar
1 vote
0 answers
940 views

Detecting blinking light on a device

Can anyone tell me good approaches to detect blinking light in a video? The background may change constantly. As of now, the color would remain same but the intensity and angle of vision can change. ...
Vampavi's user avatar
  • 119
1 vote
0 answers
2k views

i got the following error : 'numpy.ndarray' object has no attribute 'detectMultiScale' to show image in python?

...
Maulina Safitri's user avatar
0 votes
0 answers
5 views

Using CNN or a OCR to convert an image to a number

I am new to the machine learning world be patient with me. I have a cropped out version of an image where I can visibly see from the image below the number is 18. Using computer vision I can across a ...
Montrell Jubilee's user avatar
0 votes
0 answers
8 views

CNN to estimate a density map of an image, used to predict the object count

I'm trying to count the number of objects (larvae in this case), from a video. The constraint is, I cannot use any ML model, nor can I train my dataset as there are no annotations available. This ...
driver's user avatar
  • 101
0 votes
0 answers
27 views

How to get the wattage recorded by a dlsr from an image?

I am doing a physics lab where I need to take photos of a light and the intensity of the light changes. I have the photos but I need to understand how to get the average wattage from the images. There ...
Watch With Veer's user avatar
0 votes
0 answers
29 views

Extracting values from a map image (jpg)

Not sure if this is the right platform but I'm in a bit of a fix here. I'm trying to convert this image(jpg) to a raster wherein, the colormap attached shows the values. I'm aware I need to use openCV ...
Ayushi Sharma's user avatar
0 votes
0 answers
8 views

YOLOV4 model training

I can't start my model tutorial. I ran it correctly, I tried it before, but now it doesn't even start. why could it be? Did the update come?
Elif Deniz's user avatar
0 votes
0 answers
212 views

Tensorflow Text Segmentation or Open CV Text Segmenation

I want to extract text data from the image, however not sure what approach I should take. Steps successfully performed Dataset collection Image Preprocessing done Image Augmentation done Final Image ...
ZKS's user avatar
  • 101
0 votes
1 answer
826 views

OpenCV isn't processing all the images in a directory

I'm really trying to apply CLAHE to a directory of about 700 images. However, once I manage to get it running, for some reason the code stops before all the images are processed. When I run it on ...
brosefzai's user avatar
0 votes
0 answers
147 views

Rotating and cropping scanned images with OpenCV2

I wrote a script to take scanned images and crop out the background from them as well as rotate them to the proper orthogonal orientation (my set of images were not initially scanned properly and many ...
Max_GD's user avatar
  • 1
0 votes
0 answers
54 views

How to mathematically calculate individual pixel values after each image rotation?

If I have an image that is being rotated using OpenCV in python, about its centre, How do I mathematically calculate the pixel values after each rotation? A python code for this operation would be ...
giantjenga's user avatar
0 votes
0 answers
2k views

How to solve this ValueError: Dimensions must be equal

I'm trying to train an autoencoder model with colored image samples but I got this error ...
nmorsi's user avatar
  • 1
0 votes
0 answers
39 views

Read all files from all the folders

I am using Windows, Jupyter Notebook, OpenCV, Mediapipe, Tensorflow. Hello. I have a video Dataset with 100 action folders and each folder has 100 videos(.avi). Frames Per Second is 25. I want to read ...
Escanor6's user avatar
0 votes
1 answer
257 views

Converting RGB values to contour values

I am using matplotlib to generate a filled contour plot, please consider the below example as a sample contour plot. I want to read off the contour values from such a filled contour plot using opencv'...
Digvijay Rawat's user avatar
0 votes
0 answers
3k views

Normalizing images with OpenCV (divide by 255)

I'm loading images from my dataset, which are all of resolution 200x200 and in RGB format. I'm loading them using OpenCV for Python, with the following code: ...
Tegig's user avatar
  • 1
0 votes
0 answers
96 views

measure the tracking error on object detection algorithms?

I have done object detection on my video data using trackers such as CSRT, KCF and got the detection part.I have ground truth coordinates (x,y) values for few frames from the original video which ...
ketan 's user avatar
0 votes
0 answers
20 views

how to make image classification model to detect object and track object in a video

i have built a disaster classification model . now i want to use this classification model to detect ex- cyclone in a video to draw bounding box around it and track the cyclone if possible.is it ...
Adithya Adi's user avatar
0 votes
1 answer
172 views

How to convert the image into frontal?

I have to complete the project in which I have to apply some techniques or model to images . My aim is to convert the image to frontal/straight when it comes to skewed , sheared or any transformation. ...
Hamza's user avatar
  • 240
0 votes
2 answers
71 views

Is it ok that my computer vision dataset just is loads of frames and images instead of video?

I am new computer vision and I am having a dataset with consecutive frames of videos. I want to ask that is it okay? How will you deal with it to output a video with some detections?
Lucifer's user avatar
  • 11
0 votes
0 answers
1k views

Converting pixel values to temperature OpenCV

I am converting a pixel values to temp (values of a thermal image). But after conversion output image is not except able. Here is my code: ...
Sayantan's user avatar
0 votes
0 answers
467 views

Difference between two images but in certain region only

I have two images, where i need to find the difference. i can easily did with the help of SSIM function. Now i want to find the difference between two images but only selected region (i want to ignore ...
soumyajeet's user avatar
0 votes
1 answer
162 views

Cable angle measurement (rotation)

I need to detect the rotation of a cable (degree) in the x-axis with high precision [0.2 (or more) degree detection] from its original state. Detailed description: I have a cable that is set in its ...
Demon's user avatar
  • 61
0 votes
1 answer
481 views

Comparing two images and showing the difference in a new image?

I would like to compare two web pages images using computer vision techniques. Show what are non-unique portions comparing both images. Which part image1 not exist in image2 vice versa.
prashanth's user avatar
0 votes
0 answers
137 views

Orange widget with OpenCV setMouseCallback

I am designing an Orange Widget for facial recognition. I would like to draw a rectangle around faces captured in video by setting mouse events with ...
Vernica Jain's user avatar
0 votes
1 answer
540 views

Bounding box coordinates prediction

How to pass multiple bounding boxes coordinates to CNN model?My goal is to predict the coordinates of texts in an image.
vikram_reddy's user avatar