computer-vision

Image Pyramid. Having trouble creating the desired composite image

Image Pyramid. Having trouble creating the desired composite image Question: What I am trying to do: Combine these two images: Using this mask: to create this output: The assignment: Write a program to create a composite image of the two images with the mask, based on image pyramids. Now, This is what I have tried …

Total answers: 1

How to accurately measure the contact ear orientation on a flat battery using diplib

How to accurately measure the contact ear orientation on a flat battery using diplib Question: Our production line want to automate the fabrication of flat battery, I want to accurately measure the contact ear orientation of the flat battery and send the center of the battery coordinate plus the ear orientation degrees to linuxCNC motion …

Total answers: 1

Low Accuracy in Detecting Circles using Hough Circle open cv python

Low Accuracy in Detecting Circles using Hough Circle open cv python Question: I’m new to the Computer Vision field so this question may be fairly easy; yet I’m clueless on how to increase the Precision. I’m Trying to detect all circles in this picture. Here is the approach i took Gray Scaled the image gray …

Total answers: 1

Validation accuracy doesn't change at all while training a CNN network

Validation accuracy doesn't change at all while training a CNN network Question: So, I was trying to implement AlexNet on the Intel image dataset for classification. However, although during training I get high accuracy scores (0.84), validation accuracy does not change and it is very low (0.16). I have tried different optimizers and learning rates …

Total answers: 1

How to detect pits on smart card contact pins using diplib

How to detect pits on smart card contact pins using diplib Question: During the smart card manufacture process, a probe stucks could leave pits on contact pins. I try to use dip.tophat and dip.HysteresisThreshold to extract the pits, this works but found more local height outside or near the edge of the contact pins. How …

Total answers: 2

Find "noisy" lines in a image with cv2 in python

Find "noisy" lines in a image with cv2 in python Question: I have the following image: What is the best way to find the brown lines? The output image should kind of look like this: I have tried to just filter out the brown color, but I couldn’t find a good color range. Asked By: …

Total answers: 3

Find countors on a dark background

Find countours on a dark background Question: Suppose, I have a dark image on a white background. For example, the image below: With the code below, I can easily extract its countors import imutils import cv2 image = cv2.imread("image.jpg") image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) image = imutils.resize(image, width = 64) thresh = cv2.adaptiveThreshold(image, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY_INV, …

Total answers: 2

Triangulated points are shifted and rotated but reasonable otherwise

Triangulated points are shifted and rotated but reasonable otherwise Question: I have two different views of a football game, I use a 2d pose estimator on both views to get 2d poses and then I map the different 2d poses(currently by hand) in the two different cameras such that I know the corresponding poses. I …

Total answers: 1

Specify a class to detect using YOLOv8 on pre-trained model

Specify a class to detect using YOLOv8 on pre-trained model Question: I’m new to YOLOv8, I just want the model to detect only some classes, not all the 80 classes the model trained on. How can I specify YOLOv8 model to detect only one class? For example only person. from ultralytics import YOLO model = …

Total answers: 1