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

Create only the opencv 3.1 and contrib

I am a beginner and would like to create a .so (shared lib) the opencv 3.1 and contrib (to use surf) on android. I own the android studio 2.2 and Windows 8.1. I can not find a good post to follow him...

View Article


Android svm implementation error

I tried to implement svm in my android application but when i run my application i get errors. // Creating Training Data Mat trainData = new Mat(); Mat train_labels = new Mat(); for (int i = 0; i...

View Article


How to solve overlapping in blob ?

Sorry for make a question again. I try this for blob in Android. and draw rectangle too, i mean for show scala too, but i don't know how to doing. And i try to modification this part. but still...

View Article

How to find borders and crop the image

In my project, I am try to detect a handwritten character. How to find borders of image based on pixel colour and crop image. I wrote some code but it perfectly crops only at top left side written...

View Article

Error “bad_alloc” or “Fatal Signal 11” when train decision tree using opencv...

I am trying to train my tree but the app crashes and shows "bad_alloc" or "Fatal Signal 11". I have been searching for an answer but I have not found anything useful... Could someone help me?:( Mat...

View Article


Neural network implementation using opencv and java

I should use opencv with java language but when i tried to implement neural network i got errors in this instruction ann.train(trainData, Ml.ROW_SAMPLE,train_labels); // Creating Training Data Mat...

View Article

How to return and show only cropped area on CameraView?

I cand cropped CameraFrame. When I return the cropped area then I'm getting error. public Mat onCameraFrame(CameraBridgeViewBase.CvCameraViewFrame inputFrame) { Mat imgSrc = inputFrame.rgba; Point...

View Article

OpenCV4Android 3 with extra modules for 32 and 64 bit

Hey there, I´m trying to compile an application with OpenCV 3 on various Android devices. I wanna use Nexus 5, 7 -> 32 bit and also Pixel C and Nexus 6p -> 64 bit. There are two problems: 1....

View Article


grab frames from camera buffer and display them in an image view using...

Hi, I am trying to make an app that shows camera preview, And i want to take frames of the shown preview and do on it processing. What is working is the camera preview,but I don't find any solution...

View Article


OpenCV4Android - Erode a Contour? Or some form of a distance transform?

So let's say that I have the contour of an object but I want to shave off the outer 5 pixels from the contour what would be the best way to do that? Some form of erosion? A distance transform? or...

View Article

opencv error when trying to submat an image in an android project

I tried to detect contours in an image ,draw a bounding box for each contours ,put all rect.x rect.y rect.height in an array lists ,sorting them and finally draw a rectangle for each lignes in the...

View Article

OpenCV4Android conversion from MatOfKeyPoint to MatOfPoint2f

I am trying to use OpenCV for Android (OpenCV 2.4.3) I am writing a program to track keypoints. I am trying to use FeatureDetector to detect keypoints and then Video.calcOpticalFlowPyrLK to track them....

View Article

Make a condition on OpenCV4Android

Hey Everyone, Im newbie on OpenCV4Android "BlobColorDetection" . I try to knowing the HSV Color from this object with this Toast. My question how to make a condition when Value = 160 - 180 then show...

View Article


System.loadLibrary(...) could not find native library in my case

I want to create a simple android project using native libs, I copied existing native library from another Android project into my android project under jniLibs folder. I am new in this, i will...

View Article

How can I detect vertical and horizontal edge at Android

I want to detect a vehicle using histogram of the vertical and the horizontal edge. How can I detect vertical and horizontal edge on the camera and make the each histogram? plz reply. and give me a...

View Article


Surf image matcher this with distorted results

I have the following class that uses the android camera to capture an information to make a match of another image using opencv 3.1 with surf. public class MyCameraPreview implements...

View Article

After converting image to bitmap, image doesn't displayed

When I'm trying to convert the Mat image to Bitmap the image doesn't displayed in my device, on the contrary when I use `Bitmap.Config.RGB_565` the displayed image is black. Here is my code: Mat src =...

View Article


Bad performance tracking circles in Android app

I’m currently building an app that tracks a calibration card with 7 circles and use the colour values from the circles to do some calculations. I’ve tried to build on...

View Article

Find the number of white pixels in contour

I have an image and I'm trying to find the filled circles inside image (MCQ's). ![image description](http://i.stack.imgur.com/gnSlh.jpg) I have found all contours and when drawing its drawing the...

View Article

Bilateral filter error, Assertion failed ((src.type() == CV_8UC1 ||...

My code is shown in the following: Bitmap b = BitmapFactory.decodeResource(getResources(), R.drawable.image1); int width = b.getWidth(); int height = b.getHeight(); Mat tmp = new Mat (width, height,...

View Article
Browsing all 1117 articles
Browse latest View live