Questions tagged [opencv]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
3k views

avoid duplicate frames in ffmpeg

I have a video.mp4 which I need to convert losslessly into a sequence of images. I used ffmpeg -i input.mp4 $filename%05d.tiff but I get a lot (thousands) of duplicated frames. What are they? is it ...
terauser's user avatar
0 votes
1 answer
666 views

Java folder missing from openCV installation with homebrew

On my old MacBook Pro mid 2012 I was able to easily install openCV 4.5.2 with homebrew. After installation I had a java folder with a dylib file and a jar. Now I bought a MacBook Pro M2 2022, ...
gutey's user avatar
  • 1
1 vote
0 answers
207 views

How can I use "mestimate" for detection of a new object from a live video feed?

I read that I can use motion vectors to detect new objects in a scene as a form of motion detection. FFMPEG doesn't have motion detection implementation but I can use "mestimate" which uses ...
Max Dax's user avatar
  • 49
0 votes
0 answers
2k views

FFmpeg live streaming to ffserver delay at start

I'm trying to achieve a simple camera streaming using FFMpeg and FFserver. I have two slightly different systems acting as source, both Debian OS: the first one runs ffmpeg 3.4.8, as indicated in ...
Sandro Pellizza's user avatar
1 vote
0 answers
661 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 ...
mero's user avatar
  • 111
1 vote
0 answers
19 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 ...
user956609's user avatar
0 votes
1 answer
207 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 ...
Grimkin's user avatar
1 vote
0 answers
150 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 ...
Dwo's user avatar
  • 11
1 vote
0 answers
328 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 ...
amitnair92's user avatar
0 votes
1 answer
916 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; ...
Han's user avatar
  • 11
1 vote
0 answers
283 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 ...
Sir Muffington's user avatar
0 votes
0 answers
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!') ...
Oscar Mike's user avatar
0 votes
0 answers
418 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 ...
Daniel C's user avatar
1 vote
0 answers
5k 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 ...
Melvyn Mathew's user avatar
1 vote
0 answers
384 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....
TomE8's user avatar
  • 111
1 vote
1 answer
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 ...
Matt Lyons's user avatar
4 votes
1 answer
5k 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 ...
DaveWalker's user avatar
0 votes
1 answer
2k 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/...
Nikhil's user avatar
  • 1
0 votes
0 answers
134 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 ...
user3262532's user avatar
1 vote
0 answers
655 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 ...
Muhammad Umer's user avatar
1 vote
2 answers
5k 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 /...
AsianInvasi0n's user avatar
1 vote
2 answers
2k 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/...
WestCoastProjects's user avatar
1 vote
0 answers
473 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: ...
WestCoastProjects's user avatar
0 votes
1 answer
599 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 ...
H4ru's user avatar
  • 1
0 votes
0 answers
456 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 ...
Pen Gerald's user avatar
0 votes
0 answers
154 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 ...
jpc2112's user avatar
0 votes
1 answer
823 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 ...
awny shaheen's user avatar
0 votes
1 answer
1k 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 ...
deadshot's user avatar
1 vote
1 answer
4k 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 ...
2q.'s user avatar
  • 13
0 votes
0 answers
256 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 ...
stewyluey4's user avatar
1 vote
2 answers
17k 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 ...
mama's user avatar
  • 11
1 vote
0 answers
118 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/...
user1025155's user avatar
0 votes
1 answer
352 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: ...
Kylie's user avatar
  • 1
2 votes
2 answers
1k 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 ...
Zirhi Daniel's user avatar
0 votes
1 answer
68 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 ...
Siddharth Mishra's user avatar
1 vote
0 answers
431 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....
Pangit's user avatar
  • 121
2 votes
2 answers
3k 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:...
T Linkin's user avatar
1 vote
0 answers
1k 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 ...
Rohan Harish's user avatar
3 votes
0 answers
1k views

stitch multiple microscope images using python [closed]

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 ...
Arno van der Weijden's user avatar
1 vote
1 answer
2k 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 ...
Jessica Chambers's user avatar
1 vote
1 answer
4k 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 ...
user3387542's user avatar
1 vote
1 answer
102 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 ...
Darkmoor's user avatar
  • 111
0 votes
0 answers
554 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 ...
José Jácome's user avatar
1 vote
0 answers
120 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 ...
Igor Skoric's user avatar
1 vote
0 answers
67 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 ...
dariush's user avatar
  • 111
1 vote
2 answers
876 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/...
drjrm3's user avatar
  • 1,496
1 vote
1 answer
3k 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 ...
dylan7's user avatar
  • 231
0 votes
1 answer
1k 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 ...
Luke Yeager's user avatar
8 votes
3 answers
28k 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, ...
user275692's user avatar
1 vote
3 answers
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 ...
2vision2's user avatar
  • 203