OpenCV

Is there a platform independent way to list video input devices

亡梦爱人 提交于 2021-01-01 06:59:06
问题 Before opening doing a capture by creating a VideoCapture object I want to display a list of available devices to select from. I believe this can be done in Windows using DirectShow and in Linux by checking the /dev/video* entries. But I am wondering if there is any platform independent way I can get this list? NOTE. I know I can enumerate the devices using VideoCapture.open and checking isOpen but I want to be able to display a meaningful name also and I don't think VideoCapture gives me

How to convert Uint8List to C equivalent datatype using dart:ffi

≡放荡痞女 提交于 2021-01-01 06:21:49
问题 I am trying to send an image to my Custom C++ code which I am planning to run using dart:ffi. I have successfully run the hello world problem where I send two integers and get the some of them as another intiger. Now I want to send a whole image to it and process it on my C++ code. I am able to get Uint8List from the CameraImage using the below code Future<ui.Image> convertCameraImageToUiImage(CameraImage image) async { imglib.Image libImage = imglib.Image.fromBytes( image.width, image.height

How to convert Uint8List to C equivalent datatype using dart:ffi

拈花ヽ惹草 提交于 2021-01-01 06:20:30
问题 I am trying to send an image to my Custom C++ code which I am planning to run using dart:ffi. I have successfully run the hello world problem where I send two integers and get the some of them as another intiger. Now I want to send a whole image to it and process it on my C++ code. I am able to get Uint8List from the CameraImage using the below code Future<ui.Image> convertCameraImageToUiImage(CameraImage image) async { imglib.Image libImage = imglib.Image.fromBytes( image.width, image.height

How to extract account number in cheque/check images

倖福魔咒の 提交于 2020-12-31 17:53:05
问题 I am working on a task to extract the account number from cheque images . My current approach can be divided into 2 steps Localize account number digits (Printed digits) Perform OCR using OCR libraries like Tesseract OCR The second step is straight forward assuming we have properly localized the account number digits I tried to localize account number digits using OpenCV contours methods and using MSER (Maximally stable extremal regions) but didn’t get useful results. It’s difficult to

building wheel for dlib (setup.py) loop

∥☆過路亽.° 提交于 2020-12-31 04:32:15
问题 trying to install dlib and face_recognition from Ubuntu taking reference from https://www.learnopencv.com/install-dlib-on-ubuntu/ but after following commands: i am stuck at: Building wheels for dlib, face-recognition-models Building wheel for dlib (setup.py) ... /(looping stick) 回答1: To complement mshahiddev answer I added -vvv and it showed that it was working. Just took a really long time to complete. I just had to wait. pip install dlib -vvv 回答2: This was posted by another user on my

Opencv stream from a camera connected to a remote machine

风流意气都作罢 提交于 2020-12-31 04:06:57
问题 I am developing a wx application in python for streaming and displaying video from two different webcams. This works fine, but now I need to do this in a different scenario in which the two cameras are connected in separate machine running on Windows connected over a network. My application will run on machine 1. The video from the camera 1 can be fetched using opencv and display on a panel. And also I want to fetch video from camera 2 connected to machine 2, and display it in the application

How to map optical flow field (float) to pixel data (char) for image warping?

眉间皱痕 提交于 2020-12-30 20:40:44
问题 I've been playing with the optical flow functions in OpenCV and am stuck. I've successfully generated X and Y optical flow fields/maps using the Farneback method, but I don't know how to apply this to the input image coordinates to warp the images. The resulting X and Y fields are of 32bit float type (0-1.0), but how does this translate to the coordinates of the input and output images? For example, 1.0 of what? The width of the image? The difference between the two? Plus, I'm not sure what

How to map optical flow field (float) to pixel data (char) for image warping?

心不动则不痛 提交于 2020-12-30 20:16:53
问题 I've been playing with the optical flow functions in OpenCV and am stuck. I've successfully generated X and Y optical flow fields/maps using the Farneback method, but I don't know how to apply this to the input image coordinates to warp the images. The resulting X and Y fields are of 32bit float type (0-1.0), but how does this translate to the coordinates of the input and output images? For example, 1.0 of what? The width of the image? The difference between the two? Plus, I'm not sure what

How to map optical flow field (float) to pixel data (char) for image warping?

假装没事ソ 提交于 2020-12-30 20:15:55
问题 I've been playing with the optical flow functions in OpenCV and am stuck. I've successfully generated X and Y optical flow fields/maps using the Farneback method, but I don't know how to apply this to the input image coordinates to warp the images. The resulting X and Y fields are of 32bit float type (0-1.0), but how does this translate to the coordinates of the input and output images? For example, 1.0 of what? The width of the image? The difference between the two? Plus, I'm not sure what

How to map optical flow field (float) to pixel data (char) for image warping?

人盡茶涼 提交于 2020-12-30 20:14:06
问题 I've been playing with the optical flow functions in OpenCV and am stuck. I've successfully generated X and Y optical flow fields/maps using the Farneback method, but I don't know how to apply this to the input image coordinates to warp the images. The resulting X and Y fields are of 32bit float type (0-1.0), but how does this translate to the coordinates of the input and output images? For example, 1.0 of what? The width of the image? The difference between the two? Plus, I'm not sure what