javacv

Google Maps Nearby Search (Show Selected nearby markers only with autocomplete )

被刻印的时光 ゝ 提交于 2019-12-13 10:24:48
问题 I have this code, which works fine, but there is just one issue which I am getting: When we search nearby places, it appends the new nearby search markers with the old markers, screenshots are attached in these links. Here I have searched the nearby banks: http://prntscr.com/aouxra It has successfully shown, but now if I search another nearby place like hotel, it will append its markers with the banks markers which has been searched previously, like this: http://prntscr.com/aouz23 I want to

How to convert ShortBuffer to Buffer[]?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 07:03:15
问题 I'm using JavaCV on Android, and I'm following along with this sample activity. https://code.google.com/p/javacv/source/browse/samples/RecordActivity.java However the line that i'm having trouble with is recorder.record( ShortBuffer.wrap(audioData, 0, bufferReadResult). ); But i'm getting exceptions for that line as it is expecting a Buffer[]. However reading into Buffer and ShortBuffer, I'm not sure why it wont take it. Declarations for record() public void record(com.googlecode.javacv.cpp

Image stitching: NullPointerException

感情迁移 提交于 2019-12-13 06:04:23
问题 I have run this code. It seems to be that result.png is not generated as a result: public class ImageStitching { public static void main(String[] args){ MatVector images = new MatVector(2); images.put(0,cvLoadImage("sample1.png")); images.put(1,cvLoadImage("sample2.png")); IplImage result = new IplImage(null); int status = stitcher.stitch(images,result); if( status == stitcher.OK ) { cvSaveImage("result.png", result); } result = cvLoadImage("result.png"); final CanvasFrame canvas = new

4 channel IplImage javacv to android bitmap

旧街凉风 提交于 2019-12-13 04:06:10
问题 I'm trying to record video by checking each frame of camera preview to bitmap with quality ARGB_8888. As it required 4 channel, Created IplImage with channel 4 too. Now the output have two major problems : 1) Bitmap that created from IplImage have grayscale. even if I have converted it from BGR2RGBA. 2) 4 channel IplImage gave me bitmap (divided in 4 parts) with same screen. Let me put my code over here. @Override public void onPreviewFrame(byte[] data, Camera camera) { if (yuvIplimage !=

JavaCV error when saving a captured image

♀尐吖头ヾ 提交于 2019-12-13 03:22:15
问题 This error comes up when I click my Capture button. OpenCV Error: Unspecified error (could not find a writer for the specified extension) in cv::imwrite_, file C:\build\2_4_winpack-bindings-win64-vc14-static\opencv\modules\highgui\src\loadsave.cpp, line 275 Exception in thread "AWT-EventQueue-0" CvException [org.opencv.core.CvException: cv::Exception: C:\build\2_4_winpack-bindings-win64-vc14-static\opencv\modules\highgui\src\loadsave.cpp:275: error: (-2) could not find a writer for the

Android video stream to windows desktop - Latency Issue

对着背影说爱祢 提交于 2019-12-13 03:05:51
问题 I am using an android v21 device to stream data to a javafx application. Its working fine but I have about 2 seconds of latency. As of now the basic transportation goes like this android Cameratompegtest.class unkown latency android packetizer(udp) 10 millis windows depacketizer no buildup of data in buffers windows ffmpeg framgrabber unkown latency javafx imageview <1 millis My data stream to my desktop and my packetizer is much faster than my frame rate and is often just waiting. There is

Tap to record like in vine using javacv

我们两清 提交于 2019-12-12 19:16:21
问题 I am trying to implement a tap to record feature like in vine. A sample for handling recording (not touch to record) provided in javacv is https://github.com/bytedeco/javacv/blob/master/samples/RecordActivity.java. I am trying to modify it so that in onPreviewFrame method frames are added to buffer only when user has his finger placed on screen. These frames are then tried to be combined into final video in stopRecording method. The issue is that if I set the timestamp as given in below code

java.lang.ExceptionInInitializerError in javacv

偶尔善良 提交于 2019-12-12 06:16:40
问题 I am using javacv library for video recording http://code.google.com/p/javacv/ in my project i need to use opencv_highui.cvLoadImage function but on this line i am getting error like 11-20 14:58:38.697: D/dalvikvm(7587): No JNI_OnLoad found in /data/app-lib/com.javacv.recorder-2/libopencv_highgui.so 0x42474478, skipping init 11-20 14:58:38.697: W/dalvikvm(7587): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/googlecode/javacv/cpp/opencv_highgui; i am able to use

estimate the skew level with houghLines

岁酱吖の 提交于 2019-12-12 03:57:06
问题 i want to detect the skew level from an image. I've the following code: public void analyse(CvMat img) { rows = img.rows(); cols = img.cols(); // create edge-map from rois CvMat edgeMap = cvCreateMat(rows, cols, CV_8UC1); cvCanny(img, edgeMap, 100, 400, 3); // transform to hough CvMemStorage storage = cvCreateMemStorage(0); lines = cvHoughLines2(edgeMap, storage, CV_HOUGH_PROBABILISTIC, 1, EuclideanDistance euclideanDistance = new EuclideanDistance(); double maxDistance = Double.MIN_VALUE;

How can I detect multiple occurrence of of an object in an Image

怎甘沉沦 提交于 2019-12-12 02:32:37
问题 Hi new to OpenCV and I am using JavaCV plugin in Unity to detect floorplan. I want to detect the position of windows, doors and few other objects in the floorplan image. First I used template matching for detection, but later I figured out it wont work if object is placed in different orientation or size of object is mismatched. I am using the device camera to capture the image hence image may get a little skewed hence I abandoned this technique. Following is the reference image and the