Questions tagged [opencv3.0]

OpenCV (Open Source Computer Vision) is a library for real time computer vision. (This tag is for questions about OpenCV 3.0. Use [opencv] for general questions.)

OpenCV is an open source computer vision library

Version 3.0 released in June 2015. Its documentation can be found here.

For more information, see .

2111 questions
0
votes
3 answers

OpenCV(imread) operation stuck in elastic beanstalk

I'm trying to read a png file and output the numpy matrix of the image in terminal using imread function of opencv on the server like this import cv2 from flask import Flask import os @application.route('/readImage',methods=['POST']) def…
0
votes
1 answer

Is there anyway I can use array to store all video frames (no matter how long the video is) in opencv c++?

My computer totally crashes if I am trying to store all video frames in a vector. I know it is memory problem according to some other posts. Is there any other way I can store all video frames in just one container. I am trying this: storage =…
Sghwhw
  • 117
  • 1
  • 16
0
votes
2 answers

Image mapping to reference shape OpenCv

Here is the reference Image Here is the test image. I wanted to know which algorithm can help me in mapping test image shape to the reference image shape, so that both of them overlap perfectly. OpenCv Python.
Dhiraj kadam
  • 377
  • 3
  • 15
0
votes
2 answers

Setting pixel values in OpenCV (strange result)

I am trying this simple code: int main() { Mat a = Mat::zeros(Size(200,200) , CV_8UC1); Mat b; b = a; for(int i=0 ; i< a.rows ; i++) { for(int j = 0 ; j< a.cols ; j++) { a.at(i,j) = 100; } …
Hasani
  • 3,543
  • 14
  • 65
  • 125
0
votes
1 answer

passing additional arguments for `createOptFlow_DualTVL1` for Python

I am trying to use createOptFlow_DualTVL1 from OpenCV for Python. I am using this book (Page 120) as a reference(…
Silver moon
  • 229
  • 3
  • 15
0
votes
1 answer

v4l2 camera calibration failed with live streaming

I was trying to calibrate my web camera with the official Aruco camera calibration program using default ArUco Boards, however, I didn't get the output yml file and I received the error message below. VIDEOIO ERROR: V4L2: setting property #-1 is…
samliu
  • 73
  • 1
  • 1
  • 7
0
votes
1 answer

Unexpected result using opencv3 grabcut function in python

I was trying to use the cv2.grabcut function with python 3.5 - I'm using cv2.GC_INIT_WITH_MASK as initiation method, but the results seems weird, and the output mask is not what I was expecting. import cv2 import numpy as np import…
shahar_m
  • 3,461
  • 5
  • 41
  • 61
0
votes
1 answer

Video recorded with opencv is accelerated

I trying to record a 30 seconds video, but the output video are with just 15 seconds and accelerated. import numpy as np import os import cv2 import time filename = 'video.avi' frames_per_second = 30.0 res = '480p' def change_res(cap, width,…
0
votes
0 answers

How to plot xy coordinates in OpenCV

In this tutorial, how can I plot Data x and y coordinates without using random numbers? Otherwise, how do I change the color of the shape? import cv2 import numpy as np import matplotlib.pyplot as plt trainData =…
Cakkaphong Khangsri
  • 154
  • 1
  • 2
  • 10
0
votes
0 answers

fatal error: opencv2/gpu/gpu.hpp: No such file or directory opencv and GPU installation

the package I am trying to install is in the below link https://github.com/wanglimin/dense_flow (cv) -group-1-3p16:~/dense_flow$ sudo make Scanning dependencies of target denseFlow_gpu [ 50%] Building CXX object…
vinsent paramanantham
  • 953
  • 3
  • 15
  • 34
0
votes
0 answers

OpenCV SVM, TypeError: samples data type = 17 is not supported

I am an intermediate programmer and I have recently working with Histograms of Oriented Gradient (HOG) and SVM on OpenCV. Unfortunately, I have been running across this Type Error no matter what I have done so far. I couldn't find an answer that…
PoorProgrammer
  • 459
  • 1
  • 4
  • 14
0
votes
1 answer

opencv cv2.so binding for python3 is missing

How can I cross compile OpenCV on my ubuntu for arm where it takes a path of python3 include headers and python3 binary automatically by just passing arm Linux root file system path, so it can fetches all required modules automatically like it is…
Akash Gajjar
  • 94
  • 2
  • 8
0
votes
1 answer

cvShowImage makes the system to throw exceptions

I have a code in C language that uses the cvopen Library. Here is the code: #include #include int main(void) { int i; cvNamedWindow("Display window", CV_WINDOW_AUTOSIZE); //create a window …
Ma_Name
  • 23
  • 6
0
votes
1 answer

Segmentation fault when opencv and tensorflow both use libgtk

When OpenCV and tensorflow both use libgtk, a segmentation fault occurs. I have given below a simple script that creates the problem, relevant hardware and software versions and a stack trace. FWITW, the same versions of opencv, tensorflow, pandas…
0
votes
0 answers

Depth map multithreading

I am trying to make my depth map video faster and so I ended up to multithreading. I am having difficulties to understand this topic as I don't succeed to find an example enough clear for me. Imagining a simple code as : img1=…
gaetano ma
  • 139
  • 12