Questions tagged [opencv]

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

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

Import error (Running python script on startup using rc.local)

My python 3.6 script works fine when running it in terminal when logged in, but when I try to run it in startup using rc.local, it comes up with an import cv2 error, meaning the opencv module is not ...
0
votes
0answers
4 views

Issues with fitLine() in opencv2 [migrated]

I'm trying to write a simple function that fits a line to a binary image: # threshold image thr = cv2.threshold(src, 0, 255, cv2.THRESH_OTSU)[1] # get angle vx,vy = cv2.fitLine(numpy.float32(thr), ...
0
votes
0answers
62 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
56 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; ...
0
votes
0answers
51 views

Unble to add the OpenCV libraries to cmake

When I try to add OpenCV libraries to cmake file, it gives me the following error: /home/root/eyetrack-test/src/VideoDetect.cpp:15:30: fatal error: opencv2/opencv.hpp: No such file or directory #...
0
votes
0answers
7 views

Opencv and recording ratio equivalency

I am using using a recording ratio of 50 in VLC media player. How do you save an image using the same settings in VLC on opencv? In VLC, this corresponds to recording 1 out of every 50 frames. How do ...
0
votes
0answers
19 views

screencast virtual machine with linux and python opencv fourcc

I'm trying to record the screen of a virtual machine with Linux on it and with Python OpenCV, FourCC. When I record the screen, the recordings are totally black. I've tried the script on another real ...
1
vote
0answers
25 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
10 views

Microsoft LiveCam Studio not accessable when used at startup on RPi

I'm trying to get some camera recognition working on my RPi running Jessie and using a Microsoft LiveCam Studio as a webcam for it. The software itself works like a charme, but shall be used to supply ...
0
votes
0answers
46 views

Why aren't all elements in opencv plugin of gstreamer available?

As per gstreameropencv plugin webpage many elements should be available. However I can see only a limited number elements in my gstreamer package (see below). How can I make the rest of the elements ...
0
votes
0answers
49 views

OpenCV create_samples.exe seems to fail randomly

I created 1000 images using PS with a macro, they are all 100x100px and I want to use them as negatives for haar training. I use this line: .\opencv_createsamples.exe -img schuh3.jpg -bg bg.txt -...
0
votes
0answers
109 views

Opencv 4.1.1 and php-opencv 3.3.0

I tried to install php-opencv in a docker image from centos:7. I tried many combinations, but all failed. First, I build opencv 4.1.1 from sources (https://github.com/opencv/opencv_contrib/archive/4....
0
votes
0answers
1k 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
243 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 ...
0
votes
0answers
152 views

OpenCV and Caffe -based code: cannot open shared object file: No such file or directory

I was trying to compile and run a repo located here, which I compiled using Cmake and make (also in the repo). I have OpenCV 3.4.7 installed, but I don't know why when running the executable, it picks ...
1
vote
0answers
593 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
92 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....
0
votes
1answer
748 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 ...
0
votes
0answers
60 views

CMake Build Error for WrnchAI/ OpenCV

Im currently working on a project concering pose estimation in combination with Humans + Robots. To do so, i want to try WrnchAI instead of OpenPose. The Demo is just working fine, either on GPU/ CPU....
0
votes
0answers
114 views

GLib Critical Error using OpenCV on Jetson Nano

I've been working on an application that uses OpenCV to get images from a rtsp camera using a gstreamer pipeline, and somehow I'm getting this error: (python3:21393): GLib-CRITICAL **: 16:58:02.232:...
0
votes
1answer
758 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
505 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
45 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 ...
0
votes
0answers
76 views

Installing ocv filter for ffmpeg

I want to use ocv filter. The documentation says To enable this filter, install the libopencv library and headers and configure FFmpeg with --enable-libopencv . I use ffmpeg from Ubuntu repos....
0
votes
0answers
63 views

Install OpenCV 4 on Windows 10 with python3

I am currently trying to install OpenCV on my Windows 10 pc using these documentations: https://pysource.com/2019/03/15/how-to-install-python-3-and-opencv-4-on-windows/ python pip -m install ...
0
votes
0answers
68 views

Cannot use IP Camera on openCV 3.4.2 on Mac

I have tried to access to IP camera. I used the URL for the Camera on Firefox and Safari and it works. But I couldn't use on open CV on Mac from the terminal or Xcode. However, it works on the Command ...
0
votes
0answers
78 views

Installation of opencv3.4.6 in Ubuntu18.04 using cmake

I have compiled the source file opencv and when I test it some problem occurred like this: /usr/local/lib/libopencv_objdetect.so.3.4.6: undefined reference to `std::thread::_State::~_State()@...
0
votes
0answers
454 views

gstreamer critical error when trying to capture video using webcam python opencv (virtualbox, linux guest)

I tried using the default "cheese" program on linux, but saw a Gstreamer error. However, when I tried other webcam programs like "camorama" I can access my built-in webcam just fine. To debug the ...
1
vote
0answers
220 views

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 ...
0
votes
0answers
14 views

Running opencv with display python3 script on boot issue

I am trying to run an RTSP stream in Opencv on boot, well once the x server has loaded. My script below works fine when executing anywhere when logged in and manual but as soon as I try crontab or rc....
1
vote
2answers
3k 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
706 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
259 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
172 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
26 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
33 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
437 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
0answers
139 views

Error installing OpenCV 3.4.1 on Raspbian Stretch OS

Here is the code. ln -s /usr/local/lib/python3.5/site-packages/cv2.so cv2.so when I run this code, ln: failed to create symbolic link 'cv2': File exists appears. what should I do? Directories are ...
0
votes
1answer
725 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
2k 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
160 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 ...
0
votes
0answers
3k 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
18 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
0answers
670 views

Using published video stab script and getting: 'warning: Error opening file </build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:901>'

I downloaded a video stabilization script from Github user 'AstronomyLiveYT' and have followed his published video tutorial word for word including: Downloading the latest version of Python (v3.7.3) ...
0
votes
1answer
235 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
325 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
44 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
257 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
0answers
249 views

How to get fourCC LAGS to work on opencv-python? [closed]

I am getting this error: Could not find encoder for codec id 147: Encoder not found On one machine, VideoWriter still writes the frame to output while on another, no frames get written. I ...
0
votes
0answers
340 views

What is the solution to the DLL errors with specific Python packages with Windows?

Specific packages such as cv2, numpy, etc. sometimes loads seamlessly, however, sometimes give DLL error. For e.g. import cv2 Traceback (most recent call last): File "", line 1, in import cv2 ...