2017-08-09 03:57:23 -0600
| commented answer | Error compiling opencv with mingw32-make |
2017-08-08 17:19:04 -0600
| asked a question | Opencv java UnsatisfiedLinkError Hi,this is my code but when i run it i get an this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_eye(III)J
public class SimpleSample
{
static{ System.loadLibrary(Core.NATIVE_LIBRARY_NAME); }
public static void main( String[] args )
{
Mat mat = Mat.eye( 3, 3, CvType.CV_8UC1 );
System.out.println( "mat = " + mat.dump() );
}
}
How can i resolve it? |
2017-08-08 17:01:09 -0600
| commented answer | Error compiling opencv with mingw32-make Hi,i resolve it.But now i have an other problem,when i try to run on eclipse an opencv project i get this: Can't load IA 32-bit .dll on a AMD 64-bit platform
on this line: System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
|
2017-08-08 11:09:28 -0600
| commented question | Error compiling opencv with mingw32-make |
2017-08-08 10:57:45 -0600
| received badge | ● Editor
(source)
|
2017-08-08 10:56:41 -0600
| asked a question | Error compiling opencv with mingw32-make Hi,im trying to compile opencv with extra modules for java (ximgproc).After generating files with Cmake,i tried to use "mingw32-make" command with cmd to generate .jar and .dll ,but i got this error.
Im following this guide: https://zami0xzami.wordpress.com/2016...
How can i resolve it? C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:175:14: error: 'thread' in namespace 'std' does not name a type
std::thread second_workthread;
^~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:176:14: error: 'mutex' in namespace 'std' does not name a type
std::mutex mtx;
^~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:177:14: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable objectDetectorRun;
^~~~~~~~~~~~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:178:14: error: 'condition_variable' in namespace 'std' does not name a type
std::condition_variable objectDetectorThreadStartStop;
^~~~~~~~~~~~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::setParameters(const cv::DetectionBasedTracker::Parameters&)':
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:143:30: error: 'mutex' is not a member of 'std'
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:143:30: error: 'mutex' is not a member of 'std'
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:143:40: error: template argument 1 is invalid
std::unique_lock<std::mutex> mtx_lock(mtx);
^
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:143:51: error: 'mtx' was not declared in this scope
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:143:42: warning: unused variable 'mtx_lock' [-Wunused-variable]
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp: In member function 'void cv::DetectionBasedTracker::SeparateDetectionWork::init()':
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:156:30: error: 'mutex' is not a member of 'std'
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:156:30: error: 'mutex' is not a member of 'std'
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:156:40: error: template argument 1 is invalid
std::unique_lock<std::mutex> mtx_lock(mtx);
^
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:156:51: error: 'mtx' was not declared in this scope
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:164:13: error: 'objectDetectorThreadStartStop' was not declared in this scope
objectDetectorThreadStartStop.notify_one();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:156:42: warning: unused variable 'mtx_lock' [-Wunused-variable]
std::unique_lock<std::mutex> mtx_lock(mtx);
^~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp: In destructor 'virtual cv::DetectionBasedTracker::SeparateDetectionWork::~SeparateDetectionWork()':
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp:254:5: error: 'second_workthread' was not declared in this scope
second_workthread.join();
^~~~~~~~~~~~~~~~~
C:\Users\Jt1995\Desktop\opencv-master\modules\objdetect\src\detection_based_tracker.cpp: In member ... (more) |
2017-07-11 01:48:03 -0600
| commented question | SuperpixelSlic image grainy Before i applied the algorithm i take a picture and i cut and i rotate it.Probably,after this process the result bitmap has a low quality (like blurry). |
2017-07-10 13:46:28 -0600
| asked a question | SuperpixelSlic image grainy Hi,im doing an android project with opencv library and im using superpixelslic algorithm.After i applied the algorithm on some devices the image looks like grainy like this: This is my superpixel code: newMat=new Mat();
Utils.bitmapToMat(image,newMat,true);
SuperpixelSLIC x= Ximgproc.createSuperpixelSLIC(newMat, Ximgproc.SLIC,rows/9,(float)25);
x.iterate(num_iterations);
if (min_element_size>0)
x.enforceLabelConnectivity(min_element_size);
Mat mask=new Mat();
x.getLabelContourMask(mask,true);
newMat.setTo( new Scalar(0,0,255),mask);
Utils.matToBitmap(newMat,image);
Mat labels=new Mat();
x.getLabels(labels);
final ImageView g=(ImageView)view.findViewById(R.id.imageView5);
g.setImageBitmap(image);
|
2017-07-10 03:23:50 -0600
| asked a question | access to single pixel of SuperpixelSlic object Android i've this code where im applying the algorithm slic superpixel on a image. Then after showing my image with a imageview,the user should select with touch the superpixels he wants to select.My problem is how can i access to a single superpixel so i can color it to point out? Now,what i've done is this: Here i applied the superpixelslic algorithm to my image and i show it newMat=new Mat();
Utils.bitmapToMat(image,newMat,true);
SuperpixelSLIC x= Ximgproc.createSuperpixelSLIC(newMat, Ximgproc.SLIC,rows/9,(float)25);
x.iterate(num_iterations);
if (min_element_size>0)
x.enforceLabelConnectivity(min_element_size);
Mat mask=new Mat();
x.getLabelContourMask(mask,true);
newMat.setTo( new Scalar(0,0,255),mask);
Utils.matToBitmap(newMat,image);
Mat labels=new Mat();
x.getLabels(labels);
|