Questions tagged [adaptive-threshold]
80 questions
1
vote
1 answer
number of neuron in output layer
I am new to Artificial neural network but please help me with this question?
I am trying to implement an artificial neural network for character recognition (using MLP, and SNN), do I need to have same number of neurons in the output layer as the…

rkrara
- 442
- 1
- 6
- 17
0
votes
0 answers
Calculation of dynamic threshold for anomaly detection
I am a beginner in python and data analyst field. I have timeseries data for example as given below, I have multiple sets of data. Want to find anomalies on the timeseries data we have, for that I am using PYCARET library as it has multiple for…

mayank
- 1
- 3
0
votes
0 answers
Sauvola local image thresholding
How to apply Sauvola local image thresholding by MATLAB? I downloded the File Exchange contribution:
https://www.mathworks.com/matlabcentral/fileexchange/40266-sauvola-local-image-thresholding?tab=reviews%2F2147193
But I don’t know how to use…

yasmin
- 11
- 1
0
votes
1 answer
Unrecognized function or variable 'adaptivethreshold'
I am getting the following error message in Matlab "Unrecognized function or variable 'adaptivethreshold'" when every time I want to use Adaptive Threshold function
clear;close…
0
votes
0 answers
Estimate block size and constant from image for adaptive threshold cv2 python
I'm using
import cv2
cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,
cv2.THRESH_BINARY_INV,
11,
0)
in python to compute a…

Will
- 1,619
- 5
- 23
0
votes
0 answers
How to choose parameters for adaptive binarization automatically?
I am using the function
cv :: adaptiveThreshold (InputArray src,
OutputArray dst,
double maxValue,
int adaptiveMethod,
int thresholdType,
int blockSize,
double C
)
I have to set the blockSize and C values manually. But each image needs unique…

Alex
- 21
- 4
0
votes
2 answers
Finding black stain from gray rectangle
I'm trying to identify whether the gray rectangle in the image shown below contains black stain.
Stain Image:
Stain Highlighted:
import numpy
import matplotlib.pyplot as plt
import cv2
path = r'F:\stain.tif'
img = cv2.imread(path)
img_gray =…

Hang Kim
- 1
- 1
0
votes
1 answer
Skipping irrelevant contours for digit recognition using openCV
Extra contours getting populated:
I am using the following code to perform the contouring on a given image
image = cv.imread('/content/drive/My Drive/Colab Notebooks/digit-recognition/test-2.jfif')
grey = cv.cvtColor(image, cv.COLOR_BGR2GRAY)
grey…

sunny
- 149
- 8
0
votes
1 answer
Adaptive threshold error using python opencv library
I am in a situation where cv2.THRESH_TRUNC suits me well and I want to apply as adaptive threshold but I am facing an unknown error. Here is my basic code:
from PIL import Image
import pytesseract
import cv2
image =…

Anees ur Rahman
- 21
- 1
0
votes
1 answer
Unhandled exception at 0x00007FFFB9423B29 in Opencv.exe: Microsoft C++ exception: cv::Exception at memory location
#include
#include
#include
#include
using namespace cv;
using namespace std;
Mat imgOriginal, imgDilate, imgCanny, imgGray, imgBlur, imgWrap,…

Kshitij Mag
- 15
- 6
0
votes
1 answer
How to obtain solid shape with adaptive threshold
Is it possible to get solid shape with adaptive threshold? In my case (A) I can only get hollow shape, but it seems like in some cases (B) it is possible to get solid shape. (see picture below)
What is the requirement of the input to achieve solid…

Wayne Lin
- 45
- 7
0
votes
1 answer
how to fit lines to edges and find the center point (opencv)
I have an image to which I apply a bilateral filter, followed by adaptive thresholding to get the image below.
original image (this is a screenshot off the depth image of the object)
thresholded image
I would like to fit lines to the vertical…

Drak
- 119
- 1
- 3
- 13
0
votes
2 answers
Threshold using OpenCv?
As the questions states, I want to apply a two-way Adaptive Thresholding technique to my image. That is to say, I want to find each pixel value in the neighborhood and set it to 255 if it is less than or greater than the mean of the neighborhood…

DarkDrassher34
- 69
- 3
- 15
0
votes
0 answers
Is the canny edge detection algorithm suitable for images with low change in gradients?
I work with the segmentation of simulated rock pile images. My input image is a depth image(given below). I tried to apply the canny edge but it doesn't give promising results - rock pile areas which are clustered together are detected as a single…

VM4
- 63
- 8
0
votes
0 answers
How adaptive threshold calculate the threshold of the pixel?
I want to know how adaptive threshold calculates the threshold value for each pixel either in Adaptive mean or Adaptive Gaussian ?
opencv library
cv2.adaptivethreshold()

Ahmed Mohamed
- 28
- 4