Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Browsing all 4615 articles
Browse latest View live
↧

load the existing svm with python

How can I load the existing svm in opencv3 by python?

View Article


Trouble setting up OpenCV with NDK in Android Studio

Hi, I would like to use OpenCV with the NDK in my Android Project. I am using Android Studio. I can't get it to compile properly. I am getting error while including opencv2 in my cpp file..... ** I...

View Article


why dose the maxComponent argument in function cv.PCACompute doesn't work???

import cv2 as cv import numpy as np img=cv.imread(r'T/s.jpg',cv.IMREAD_GRAYSCALE) img=cv.resize(img,(512,512)) tdata=img.flatten() tdata=tdata.reshape(512*512,1) tdata=tdata-tdata.mean()...

View Article

openCV, Python - grab video stream

Hi there, I would like to grab a video stream like youtube by using openCV and Python, without downloading the clip. I want to analyse some frames and the only solution I found so far was to download...

View Article

need help to change this code to live web cam streaming

Hello I followed this video(https://www.youtube.com/watch?v=Y3ac5rFMNZ0) and it was perfectly worked.. but when i change code for web cam capturing it only gets static image.. then i commented lines 54...

View Article


convert a Mat type to be a type of frame Mat

Hi, I am working on an augmented reality app in android, In "onCameraFrame" i am trying to overlay a small Mat which is an image that was converted from bitmap, onto frame Mat that will be returned to...

View Article

how to use submat for a non square image

Hi, I am working on an augmented reality app in android, I am trying to overlay an image that is a shape of a star, its not a full squar onto the camera frame, dst.copyTo(submat); but i get a black...

View Article

How to utilize opencv3.1.0's GeneralizedHough

I am wondering if it is possible to actually use the Generalized Houghtransform which is available in version 3.1.0. How can I perform generalized Hough transform in python? The generalizedHough is...

View Article


Set good aspect ratio for CvCameraViewListener2 camera frames in android

Hi, I have a problem displaying the frames from CvCameraViewListener2 camera in android, Something happens to the ratio of the frames and i can not set it to be normal and correct resolution. Does any...

View Article


SURF/SIFT Java wrapper for OpenCV 3.x/OSX 10.11

Sorry for my lame question, I'm still new to OpenCV. I'm trying to compile OpenCV 3.1 with SURF/SIFT support from the git master. It looks like there is no way I can access these algorithms from Java...

View Article

opencv manager was not initialized correctly , unfortunately app has stopped...

HI I'm trying to run opencv app on my S6 device. I have installed opencv manager from play store but when I run the app this message is displayed ( opencv manager wasn't initialized correctly ) or (...

View Article

How to define a matrix with 5000 specific elements

Hello, I need to define a matrix M, M is 5000*2. In matlab, M=[1,45;89,3;....], it's not regular, so I can't define it in a loop. In my code I tried to define it like Mat M = (Mat_(num, 3) <<...

View Article

Object Detection: Detect Particular Person from Surveillance Real-Time Video

Hi Guys, I'm working on Opencv with Python, for my Final Year Project on surveillance, my requirement is to detect particular person from the motion, currently I'm using BG/FG Subtractor to detect...

View Article


Bring an Object that appear far in an Image closer to your view !

Hello everyone, I am new in Image processing, so I would like to know whether it is possible to bring an object that appear far in an image closer to the view of the user? Please advice if there is...

View Article

What does the ValueError : could not broadcast from input array(1) to input...

import numpy as np import cv2 from matplotlib import pyplot as plt while(1): img=cv2.imread('D:\IMG_0590_1.jpg') ball = img[278:104, 330:158] img[181:355, 100:274] = ball cv2.imshow('img',img) if...

View Article


Does OpenCV forum have a Chat page?

I'd like to know if this site has a chat page. I have some questions I'm not sure warrant a full question.

View Article

No Make file found

I need to install opencv extra modules.. so I followed the steps given :https://github.com/opencv/opencv_contrib I did: C:\Users\research lab>cd C:\opencv3.1\build C:\opencv3.1\build> cmake...

View Article


How to increase the video resolution using mat

Hello, Current video output is 640x480 resolution, how to increase 1280x1024 resolution. Append the image to AVI file Image rgbImage; (pCameraBuf->vecImages1[imageCnt]).Convert(...

View Article

import opencv project into android studio

Hi I'm trying to import opecv_android test project into android studio. the opencv used for this project is opencv_android sdk 2.4.10. What is the required setting for opencv and android studio is...

View Article

Increase org.opencv.android.JavaCameraView fps

Hi, I am working on an android app using opencv and java camera (org.opencv.android.JavaCameraView ), I had a problem with the frame resolution so i changed something in opencv source code and it...

View Article
Browsing all 4615 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>