![]() |
Problems with Morphology
So, in the past week I've been working on computer vision for this year's competition. I was able to create a binary image by thresholding an image for HSV ranges, but when I try to use morphology dilation I get an error
Code:
NIVision.Image img, bin, morph;Code:
VisionException [com.ni.vision.VisionException: imaqError: -1232673104: Unknown error] |
Re: Problems with Morphology
Is there any particular reason you're using NIVision instead of OpenCV?
|
Re: Problems with Morphology
Quote:
Also, to load the library: Code:
static { |
Re: Problems with Morphology
Quote:
P.S.: sorry for deleting my earlier message. I was trying to rewrite it as a reply to your post, not just another post. Still new :P |
Re: Problems with Morphology
Quote:
|
Re: Problems with Morphology
Okay, so now I've tried your methon and I get:
Code:
java.lang.UnsatisfiedLinkError: no opencv_java310 in java.library.pathCode:
import org.opencv.core.Core; |
Re: Problems with Morphology
Since you know exactly where the opencv library is located, you have the option of calling System.load("/path/to/library"). Also, make sure that the file is named "libopencv_java310.so", or System.loadLibrary() won't be able to find it.
|
Re: Problems with Morphology
Okay I figured out the problem.
1) I didn't have all the necessary dependencies in the directory of the opencv_java"version".so 2) Beforehand, I placed the files in a "/usr/local/lib," and it turns out that I don't have the necessary permissions to load the library from there. Moving the library and its dependencies to the directory of FRCUserProgram.jar fixed that. I now have OpenCV running on the roboRIO, so I can finally continue Vision Processsing. Thanks for all the help everyone!!!! |
Re: Problems with Morphology
Quote:
I suggest you do not do vision processing on your roboRIO itself. The processing will cause stuttering on your robot's end. I highly recommend sending the frame to the driver's station and then doing processing there in a stand-alone application. |
Re: Problems with Morphology
Running vision on the DS laptop will result in huge delay times (obviously). We are running vision on-board in a separate thread and it seems to work fine (main robot loop still runs at 50x/sec)
|
| All times are GMT -5. The time now is 08:01 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi