Questions tagged [opencv]

The tag has no usage guidance, but it has a tag wiki.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

cv2.cuda.getCudaEnabledDeviceCount() return 0 after visual studio build and with_cuda is set true for opencv using windows10

I want gpu to work in opencv , after CMake with_cuda true and build of (ALL_Build, Install) with no errors I found GPU not detected I use windows 10 I tried 3 times to build opencv , but Gpu not work ...
0
votes
0answers
7 views

error of element type in reading Mat of OpenCV

I got an error of Mat type while reading elements from it. The Mat is computed via a series calculations and can be outputed without an error. value of the mat via cout<< tMat; [-0.83754992; -...
0
votes
0answers
13 views

Put number of each point in a contour image

I calculated the number of red circle in the image. I need to put number in each circle of my image. Attached here my output image. Your assistance would be appreciated. My code is- if count2: ...
0
votes
0answers
13 views

How to get perfect lines using opencv of defined width (in pixels)

I am struggling hard for this please somebody help me out... I am reading a maze using opencv as shown. img=cv2.imread('Maaaze.jpg') gimg= cv2.cvtColor(img , cv2.COLOR_BGR2GRAY) _ , timg = cv2....
1
vote
0answers
11 views

Customize Alternate Control Methods(Face recognition) to control mouseclick in macOS?

In macOS Accessibility , there is a section called Pointer Control, and in 'Alternate Control Methods', I can use Raise Eyebrows to perform a left click, So I wanna ask, Is there any way to customize ...
0
votes
1answer
69 views

Stitching with large Parallax

I need to stitch images of 5 cameras together. The cameras are mounted on the sides of an underwater remote operated vehicle. It's basicly a cupoid with sizes of 2.1m x 1.3m x 1.85m. The cameras are ...
1
vote
0answers
98 views

Bandwidth Concerns for 2 Webcams and an Arduino in a USB Hub

I'm working on a robotics project using an Arduino and two Logitech C920 Pro webcams. I'm trying to keep everything nice and tidy so I thought I could connect the Arduino and the two C920s to a ...
1
vote
0answers
154 views

Solution to open a windows server multiple GUI session for same user

I am working on a Computer vision application. which launches an application on a remote server and navigates through GUI application to check if it's working fine. How I do it now is I installed my ...
0
votes
1answer
309 views

Displaying UDP Multicast Rawvideo Stream

I have a problem while trying to capture the raw video over UDP. In my setup, I stream the webcam with FFmpeg (command line) via UDP, on the client side I use Java OpenCV, the capture line; ...
1
vote
0answers
79 views

How do I run OpenCV apps remotely (thru VNC/RDP)?

What I want to accomplish: For my coursework I require to compile and execute OpenCV programs. It's all well, I installed the OpenCV library into the remote Debian server and compiled my first test ...
0
votes
0answers
2k views

MacOS Mojave | PyCharm Is not allowed to access to the camera

I am trying to execute the following code: import cv2 video_capture = cv2.VideoCapture(0) print('Camera initialized') ret, raw_frame = video_capture.read() video_capture.release() print('Bye!') ...
0
votes
0answers
310 views

Raspbian openVINO - no module named 'cv2'

I have been configuring openVINO on my Raspberry pi 2 B, and followed these instructions. I was successfully able to run the "object_detection_sample_ssd" demonstration, but that is where my luck ...
1
vote
0answers
1k views

Anaconda Prompt Stuck on “downloading and extracting packages” specifically for Wheel-0.33.4

I was trying to install opencv following instructions from https://www.learnopencv.com/install-opencv-3-and-dlib-on-windows-python-only/ It identified some packages that needed to be installed and ...
1
vote
0answers
153 views

opnecv4.pc missing file and gocv

I am trying to make this code to work: package main import ( "gocv.io/x/gocv" ) func main() { webcam, _ := gocv.VideoCaptureDevice(0) window := gocv.NewWindow("Hello") img := gocv....
1
vote
1answer
2k views

installed Opencv 4.1.1 from source over 3.4.3, and C++ headers are not linking correctly

I jusst installed Opencv 4.1.1 from source, with python 3 bindings. My Python installation seems to work correctly, because if I run: import cv2 cv2.__version__ I get '4.1.1' However, I also want ...
1
vote
1answer
2k views

25% of my .mp4 have “error reading header” in FFMPEG, OpenCV - but videos all play fine

I've got a Reolink security camera, which saved .mp4 files via FTP to a local server. I've then got my own Python-based application processing those videos. It's been working fine for the past year ...
0
votes
1answer
995 views

Why does OpenCV+GStreamer lags exactly two seconds behind real time?

I'm trying to capture live feed through an h264 camera on RTSP protocol. On a terminal, the following gst-launch-1.0 command gives almost real-time feed: gst-launch-1.0 playbin uri=rtsp://IP:PORT/...
0
votes
0answers
49 views

Way to record the last n minute from webcam

I try to use or create a software to record the last n minutes from a webcam. I use opencv to grab images from my webcam but I don't know if it is the best way to create a in real time a video. I ...
1
vote
0answers
458 views

(no-answer) How do I merge videos that have overlapping frames into a video without duplicate frames?

I've nvidia highlights that takes 3 minutes recordings when events happen. If two events happen sooner than 3 minutes then those recorded clips have overlapping frames. I want to take all the clips ...
1
vote
2answers
4k views

OpenCV Failed Compilation “Eigen/Core: No such file or directory” — Cannot Change CMake Entry

I'm trying to install OpenCV but when I try to compile using CMake, I always get the error stated in the question, usually around 4% - 6%. [ 6%] Building CXX object modules/core/CMakeFiles /...
0
votes
2answers
1k views

Error 'tesseract/baseapi.h' file not found when building opencv from source on macos

I am building opencv 4.1.0 from source on mojave and it gets to 54% before dying with the stated error: /git/opencv-4.1.0/opencv_contrib/modules/text/src/precomp.hpp:54:10: fatal error: 'tesseract/...
1
vote
0answers
328 views

Compiler errors when building opencv from source on macos

I am trying to build OpenCV 4.1.0 on Mac by following this blog: https://www.learnopencv.com/install-opencv-4-on-macos/ Here is the command line for the preparatory cmake - which is successful: ...
0
votes
1answer
341 views

anaconda opencv python version different from anaconda python version

(base) C:\Users\Aspire 5>python Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 10:22:32) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more ...
0
votes
0answers
39 views

Having Trouble installing dependencies for OpenCV on RPi

for some reason, when i run the code below i get the following error. what should i do? I'm trying to install opencv for python 3. sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev ...
0
votes
0answers
78 views

How can I speed up laptop internal webcam capture in Ubuntu 18.04 vs Windows 10?

I am writing C++/opencv code for some image processing routines, and am using my Dell Precision 7730's own webcamera to get test video input. Video card is Quadro P5200. I started in Windows 10 ...
0
votes
1answer
584 views

Real time video recording frames processing

Recently I have been working on an Android camera with lots of features using camera2 and OpenCV, and now I want to record a video with custom resolution, for example if my device support 1920×1080 ...
0
votes
1answer
862 views

Anaconda OpenCV import error

I am currently using conda version 4.6.14 with python 3.7.3, I successfully installed OpenCV in the anaconda shell using conda install -c conda-forge opencv but when I run python in the shell and type ...
1
vote
1answer
3k views

Import OpenCV module to Android Studio blocked by “Nothing to Show”

I'm trying to use OpenCV in an AndroidStudio to start creating an application that will be processing images from the camera. In short, I setup a new Android Studio project based on Java code and ...
0
votes
0answers
195 views

Intel RealSense Camera R200 video feed is all green

I am trying to get an Intel Realsense R200 camera working on a Windows 10 machine using Python 3.7.3 and OpenCV 4.1.0. The problem is that when I open the application the video feed is all green ...
1
vote
2answers
8k views

Error installing dlib on Pycharm

I am trying to install dlib on Pycharm (which is similar to Anaconda) in order to use it for my Python and OpenCV face detection project. I have installed cMake and upgraded Python but there is ...
1
vote
0answers
44 views

OpenCV install stuck on cmake

I'm currently in the middle of installing openCV3 on my raspberry pi3. The pi is a clean install of NOOBS Raspbian and I'm using this PyImageSearch install guide: https://www.pyimagesearch.com/2016/04/...
0
votes
1answer
264 views

Error while integrating OpenCV in Android Studio (color.xml, content not allowed in prolog)

I have been trying to integrate/use OpenCV in Android Studio. But I keep getting stuck with this error. C:\AndroidStudioProjects\IntegrateOpenCV341\app\src\main\res\values\colors.xml:1:1: Error: ...
1
vote
1answer
596 views

Accessing Macbook Webcam on Ubuntu via VMWare Fusion

I am writing a program in C++ using opencv. I am working on Ubuntu via VMWare Fusion. When I run my program, it seems the integrated webcam on my Mac is not recognized so I get the error message I ...
0
votes
1answer
46 views

How to install any latest version of any c/c++ library over an old one

I want to install the latest version of OpenCV on my linux distro [ Kali ] i.e OpenCV 4.0.1 over OpenCV 3.4.3 . Will there be any problems if I directly install OpenCV 4.0.1 ? Just to make this ...
1
vote
0answers
264 views

OpenCV with Gstreamer installation…possible?

I have some Python code which utilizes OpenCV in a way to use Gstreamer pipelines in lieu of a webcam or video file as input to a 'Videocapture' command...for a simple example: send = cv2....
1
vote
1answer
2k views

OpenVINO installation on Raspbian - usbboot.rules file issue

I am attempting to install OpenVINO on my Raspberry Pi 3 B+ to use the Neural Compute Stick 2. They just recently released support for this and I am following the installation instructions here: https:...
1
vote
0answers
928 views

Run OpenCV commands on command Prompt

I am completely new to doing these things, so please bear with me. To learn more about using OpenCV, I installed it with pip for python 3.6.5. This worked fine at first, but eventually, I started ...
2
votes
0answers
835 views

stitch multiple microscope images using python

I'm trying to stitch a scan of a large area made using a microscope but I'm not having a whole lot of luck. I started testing with 3 images extracted from a scanning video. I stitched each 2 matching ...
1
vote
1answer
1k views

opencv_core245.dll & opencv_ml245.dll missing

I'm trying to install some important software related to my work (on Windows 10), but when I try to run it an error pops up saying that opencv_core245.dll & opencv_ml245.dll are missing. I have ...
1
vote
1answer
2k views

Low latency video shared in local gigabit network using linux

For a robotics task we need to share the video (Webcam) live to about 6 or 7 users in the same room. OpenCV will be used on the clients to read the situation and send new tasks to the robots. Latency ...
1
vote
1answer
96 views

Audiovisual content looses synchronization

I have a .mp4 video file which came from an uncompressed .avi captured from a webcam through emgu. The emgu videoWriter is set to 30fps even the real video fps is possibly lower, e.g., 29fps. The ...
0
votes
0answers
469 views

CUDA compilation inOpenCV in Arch Linux

I'm trying to compile programs in OpenCV 3.2.0 with CUDA, I have a Graphic Card Nvidia Gforce 950M (Maxwell) and I use Arch Linux First of all, I had installed on Arch Linux X64 and the lastest ...
1
vote
0answers
107 views

Merging two videos while skipping common parts

A customer has a collection of tutorial videos, all of which have the following structure: preview (or recap) intro (always identical) repeated part from previous video (optional) new content outro ...
1
vote
0answers
54 views

Setting up stereo cameras

I am about to set up stereo cameras, and use OpenCV for real-time image and depth processing, the last time I tried, I have bought a pair of uncompressed cameras which the problems like this and this ...
1
vote
2answers
684 views

gtk_widget_set_realized was not declared in this scope

I'm trying to compile OpenCV 3.1.0 on RHEL 6.4 and getting the following error: [ 34%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o /hpcf/libs/opencv/vendor/...
1
vote
1answer
2k views

OpenCV: ImportError: libavcodec.so.54

I am using Ubuntu, and whenever I try to import cv2 to python I get the following error: ImportError: libavcodec.so.54: cannot open shared object file: No such file or directory I looked online ...
0
votes
1answer
993 views

Visual Studio deletes my CMake.exe

I'm installing OpenCV from this [very out of date] tutorial. I made it through the configuration step and everything seemed fine, but then when I try to build the OpenCV.sln, I get a bunch of these ...
8
votes
3answers
27k views

Install OpenCV in CentOS

I am trying to install OpenCV in CentOS 6. When I run the command [root@cosmas opt]# sudo yum install libtiff4-dev libjpeg-dev libjasper-dev it returned the follow: Loaded plugins: fastestmirror, ...
1
vote
3answers
3k views

OpenCL support hardware requirements

Does my machine support OpenCL? I found Conformant Products where the list contains the required hardware requirements. Please find the below screenshots of few of my machine. Does any one of the ...
7
votes
3answers
39k views

Which directory is opencv “installed” in?

Operating System: #! (crunch bang) Dependencies: opencv I am attempting to install cvblob (a library for opencv) and I am at the compilation stage in the directions that of which can be seen below. ...