Methods to acquire, analyze and understand images using mathematical approaches.
Questions tagged [vision]
664 questions
6
votes
3 answers
Filter fluctuating lighting with OpenCV
I need to do fairly sensitive color (brightness) measurements in webcam footage, using OpenCV. The problem I am experiencing is that the ambient light fluctuates, which makes it hard to get accurate results. I'm looking for a way to continuously…

FHannes
- 783
- 7
- 22
6
votes
2 answers
WCF Service and COBOL VM
We have a currently operating WCF Service and COBOL VM communicating to provide access to data from Vision files. The process works, but we have to limit the WCF Service to [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single)]. It works, but…

Martin
- 1,914
- 1
- 12
- 14
6
votes
3 answers
Calculate distance (disparity) OpenCV
-- Update 2 --
The following article is really useful (although it is using Python instead of C++) if you are using a single camera to calculate the distance: Find distance from camera to object/marker using Python and OpenCV
Best link is Stereo…

Odrai
- 2,163
- 2
- 31
- 62
6
votes
5 answers
OpenCV 2.3 camera calibration
I'm trying to use OpenCV 2.3 python bindings to calibrate a camera. I've used the data below in matlab and the calibration worked, but I can't seem to get it to work in OpenCV. The camera matrix I setup as an initial guess is very close to the…

hokiebird
- 280
- 1
- 5
- 15
5
votes
0 answers
VNRecognizeTextRequest Text Detection Line Break
Using Vision.
Is there a way to detect line breaks in VNRecognizeTextRequest?
This is a part of my code:
let text = observation.compactMap({
$0.topCandidates(1).first?.string
}).joined(separator: "\n")
the result of a…

Hassan Taleb
- 2,350
- 2
- 19
- 24
5
votes
1 answer
Improve body tracking performance of VNDetectHumanBodyPoseRequest
I am trying to improve the performance of drawing the skeleton with body tracking for VNDetectHumanBodyPoseRequest even when further than 5 metres away, and with a stable iPhone XS camera.
The tracking has low confidence for the lower right limbs of…

Pranav Kasetti
- 8,770
- 2
- 50
- 71
5
votes
0 answers
How to fix "google.api_core.exceptions.ServiceUnavailable: 503 Connect Failed" when connected to Google cloud API
I want to use GOOGLE vision API,and I get the error 'google.api_core.exceptions.ServiceUnavailable: 503 Connect Failed'.
I get 503 error when connecting to Google vision API, and i have followed the instruction step by step. The link is as…

zhaoluzl
- 51
- 1
- 2
5
votes
0 answers
Vision Framework recognize image in video
Is it possible to detect image in Video with usage of Vision Framework? This example https://github.com/jeffreybergier/Blog-Getting-Started-with-Vision shows how to track object on video that user previously tapped on. Is it possible to add image to…

Michal Gumny
- 1,770
- 1
- 16
- 24
5
votes
3 answers
python - Implementing Sobel operators with python without opencv
Given a greyscale 8 bit image (2D array with values from 0 - 255 for pixel intensity), I want to implement the Sobel operators (mask) on an image. The Sobel function below basically loops around a given pixel,applies the following weight to the…

Frank du Plessis
- 73
- 1
- 3
- 8
5
votes
1 answer
Platform Independent GigE Vision driver
Is there a platform independent GigE Vision driver or software package that exists? I am integrating a Point Grey Research Flea3 GigE camera with a Texas Instruments C6678 multi core DSP chip. I was hoping to find a piece of software that had…

Crake
- 1,661
- 1
- 13
- 30
4
votes
1 answer
How to Draw Vector Image on Face using Vision Detector
I want to Draw the Vector image of the Face by detecting the Face points using Vision I have created a code in which I am getting a few points and I have downloaded the code to Draw lines but I am unable to understand it and Customise the Lines.…

Rajni Bajaj
- 174
- 9
4
votes
3 answers
How to use Apples Machine Learning to Lift subjects from the background?
In iOS 16 you can lift the subject from an image or isolate the subject by removing the background.
You can see it in action here: https://developer.apple.com/wwdc22/101?time=1101
I wonder whether this feature is also available for developers to use…

Daniel
- 1,473
- 3
- 33
- 63
4
votes
0 answers
Performance not improved when passing a smaller CVPixelBuffer to VNGeneratePersonSegmentationRequest
I am working on an app with a segmentation portion. We have tried passing the following sizes to VNGeneratePersonSegmentationRequest:
10x10
100x100
256x256
512x512
4096x4096
Even after the first (Warmup) request, we are finding performance among…

Dennis L
- 1,713
- 14
- 21
4
votes
1 answer
VNDocumentCameraViewController how to disable auto shutter after the first scan?
I'm creating an app that has a live scan feature. I added the following code to present the view controller that shows what the document camera sees when a button is clicked
let documentCameraViewController = VNDocumentCameraViewController()…

Abdelrahman Hafrag
- 73
- 4
4
votes
2 answers
Swift's Vision framework not recognizing Japanese characters
I would like to read Japanese characters from a scanned image using swift's Vision framework. However, when I attempt to set the recognition language of VNRecognizeTextRequest to Japanese using
request.recognitionLanguages = ["ja", "en"]
the output…

cbusch
- 265
- 2
- 11