![]() |
GRIP and Java Code Not Agreeing
I'm new to vision processing and I've run into a problem. I currently have my Java code set up to process the reflective tape from the gear pegs using OpenCV. When I run this code, often only one of the two vision targets is identified. I saved the images that were failing and then fed them through GRIP. GRIP consistently finds both targets.
Here is a picture of my GRIP program with one of the failed images: http://imgur.com/iGsEQeK Here is the processing part of the code I am running in Java: Code:
Imgproc.cvtColor(bgr, hsvConvert, Imgproc.COLOR_BGR2HSV); |
Re: GRIP and Java Code Not Agreeing
You're doing idex++ twice.
And why are you copying the GRIP pipeline by hand? GRIP can generate code right into your program so you don't have to. Generating code Using it in a robot program |
Re: GRIP and Java Code Not Agreeing
Good catch! Hopefully that's the problem, I'll retest the code this afternoon.
I should have explained more completely, I am running this code on a raspberry pi so I didn't want to use GRIP. |
Re: GRIP and Java Code Not Agreeing
You can still use GRIP to generate code to use in a raspberry pi program.
|
Re: GRIP and Java Code Not Agreeing
When I first looked into vision processing over Christmas break, I was originally hoping to use GRIP. However, when I looked at the then-current version of GRIP's instructions for install, it did not seem to be supported for the Raspberry pi. Therefore, I went ahead and learned to use OpenCV. I have not looked at more recent versions of GRIP, so this might have changed. Or I may have misunderstood originally.
|
Re: GRIP and Java Code Not Agreeing
GRIP doesn't officially support the pi. Java doesn't have the UI libraries for the pi, but there was a community effort to get it running in headless mode with the deploy functionality. But we've added code generation since then to replace it.
|
| All times are GMT -5. The time now is 21:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi