Skip to main content
The 2024 Developer Survey results are live! See the results
5 votes
Accepted

Identify credit card shape using machine learning

I am only concerned about finding the outline of card in an image and isolating the outline of card from rest of the image. This can be efficiently solved by semantic segmentation (aka dense ...
Antonio Jurić's user avatar
4 votes
Accepted

What is the origin of YOLO/darknet coordinates

(0, 0) is top left. Here an a helpful blog that goes through all the features in the output vector. This is common in image processing. There are a few reasons ...
n1k31t4's user avatar
  • 15k
4 votes
Accepted

How to remove the hotspots from given image by using Python and opencv?

Based on this answer's algorithm I have written my code which is working as intended. Here's a breakdown of the coding steps: Otsu's thresholding is applied to the grayscale ...
S. M.'s user avatar
  • 161
3 votes

How to convert photo to a vector drawing

This problem is known as "style transfer", and deep learning can achieve some pretty amazing results. Here's a fantastic GitHub repo with an easy-to-use implementation of neural style transfer (usage ...
zachdj's user avatar
  • 2,734
3 votes

How to Extract Information from the Image(PNG)

If all of your images are similar to this one(or have a small set of possible designs), you can simply reference the location (pixel-wise) on the image where this fields are and slice it. After ...
Pedro Henrique Monforte's user avatar
3 votes

How can I detect blocks of text from scanned document images

There are two options : Scan the images with a higher DPI. This should accentuate vertical separation between paragraphs. Train a Deep learning model for Text Detection in scene. Examples : https://...
Shamit Verma's user avatar
  • 2,259
3 votes
Accepted

Is there a way (like planning algorithms) to draw a successive polyline to fill a specific shape (like triangle)?

Would not it be easier to simply apply geometric computation to your triangle to get smaller triangles whose vertices can be used for the polyline.? With Wolfram Language You have a triangle. <...
Edmund's user avatar
  • 705
3 votes

how to apply similarity algorithm(or comparision) of over one million vectors with other one million vectors?

You might want to take a look at this project FAISS. Faiss is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any ...
AlexPnt's user avatar
  • 179
3 votes
Accepted

Ellipses detecting at the image

I would recommend to use adaptive threshold rather than global threshold. Adaptive threshold deals better with uneven illumination. I have modified your code accordingly. You may want to experiment ...
Tomek's user avatar
  • 46
3 votes

Distance of a people in an image

Updated: Measuring distance from camera to object Perhaps you could search and find tons of materials. This is a well-established task, for example this tutorial, of more advanced methods combining ...
TwinPenguins's user avatar
  • 4,279
2 votes
Accepted

FREAK feature extraction OpenCV

FREAK is only a feature descriptor, so in order to use it you must provide a set of keypoints for it to extract your features e.g., FAST, AGAST, SIFT’s keypoint detector, etc. The original paper uses ...
Pedro Henrique Monforte's user avatar
2 votes
Accepted

how to apply similarity algorithm(or comparision) of over one million vectors with other one million vectors?

You could probably use Dask to do this. Dask natively scales Python. Dask provides advanced parallelism for analytics, enabling performance at scale for the tools you love Dask will schedule your ...
Nick Martin's user avatar
2 votes

Is it possible to detect a person using facial recognition on the fly?

If you need to re-train the model to classify new faces, this will not scale well to registering new people routinely. You may also suffer from glitches in accuracy during new registrations unless the ...
Neil Slater's user avatar
  • 29.1k
2 votes
Accepted

Prerequisites for openCV

OpenCV has a module to detect faces, eyes etc. With pretrained models you may also be able to detect cars. https://www.pyimagesearch.com/2018/11/12/yolo-object-detection-with-opencv/ There are many ...
Peter's user avatar
  • 7,536
2 votes

Why image is more blurred through PIL?

Some parts of the code are missing that might contain clues (e.g. you plot method would only plot random noise, as it stands). What might be happening is that you are showing the image in matplotlib ...
n1k31t4's user avatar
  • 15k
2 votes

How can I detect blocks of text from scanned document images

Have you looked into Tesseract (and its Python wrapper/interface: pytesseract)? I don't guarantee that it will solve your problems entirely, but it offers bounding box and OCR features. On this ...
AlexK's user avatar
  • 350
2 votes
Accepted

What is difference between "cv2.filter2D" vs Keras "Conv2D" function

So from an architectural viewpoint you are right, both are 2D Convolutional Kernels with size of (3,3). But there are some major differences. While ...
Jens K's user avatar
  • 346
2 votes
Accepted

What's the difference between Haar-like Features and Haar Cascades?

Haar-like features are, as the name says, features. They are basically some filters, just like the CNN filters. The main difference is that CNN learns the filters by training, while Haar filters are ...
Paul92's user avatar
  • 196
2 votes

Canny edge detection not working on Gaussian blurred images

You don't have to blur your image before passing it to Canny. OpenCv's implementation already includes a blurring step. So by passing a blurred image, you're ...
bogovicj's user avatar
  • 734
2 votes
Accepted

Find missing object(s) in image with a priori knowledge about the missing object(s) (w.r.t base image)

This is a typical scenario in multi-object tracking problem The general idea behind a multi-object tracking algorithm is the following: Find all objects from both images and crop them into patches(...
ComeOnGetMe's user avatar
2 votes

Does resizing the image size, reduce the quality of the images in CNN?

Of course, making them smaller will cause loss of information. Since before you had N x M data points for each image to describe the content of the image, but after resizing you will have n x m (Where ...
Shahriyar Mammadli's user avatar
2 votes
Accepted

Where is the rotated angle actually located in fitEllipse method?

I've implemented the following simple code: ...
Demon's user avatar
  • 61
2 votes

How to remove the hotspots from given image by using Python and opencv?

Can you try the following approach using OpenCV The logic behind this is: Convert the image to grayscale. Apply a Gaussian blur to the image to smooth out the edges. Threshold the image to create a ...
Multivac's user avatar
  • 3,009
1 vote
Accepted

Skin Detection From a Face Image

It'd be good idea to extract face segment first. In OpenCV there're predefined HaarCascades for face detection. Though, you can ...
Piotr Rarus's user avatar
1 vote

illumination problem for face landmark detection

Maybe you might try out the brightness data augmentation; in Keras you have something like: ImageDataGenerator(brightness_range=[0.2,1.0]) in case you want to ...
German C M's user avatar
  • 2,724
1 vote

I get this error Expected Ptr<cv::UMat> for argument '%s' while resizing image in open cv2

I changed the data type from float16 to float32, solving the problem: images.astype(np.float32)
Yuchao Jiang's user avatar
1 vote
Accepted

Can somebody explain me this method? CNN Keras - starter

...
Michael Hearn's user avatar
1 vote

How to Extract Information from the Image(PNG)

It's a pretty broad question, but maybe this and to a lesser extent this can help you get started.
matthiaw91's user avatar
  • 1,555
1 vote

Train ML algorithm to find edges

What You are seeking is called 'Edge detection' in CVML fields. In my knowledge, DexiNed is one of best models. See papers in paperswithcode. https://paperswithcode.com/task/edge-detection
Mason Ji Ming's user avatar
1 vote

Detecting unique icon on video in real time

Well, the first thing you need to consider about bar codes/QR Codes is that they are usually black with white background. If T-Shirts or Unique tags are been used, they should follow this pattern (or ...
Pedro Henrique Monforte's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible