[英]BoofCV: Unresolved Compilation Problems
I'm using a Raspberry Pi (4) and hoped I'd be able to implement QR detection through a Rasp Cam.我正在使用 Raspberry Pi (4),希望能够通过 Rasp Cam 实现 QR 检测。 I found BoofCV that could do the job - so I copied the code from the ExampleDetectQrCode repo but its throwing a few errors...
我发现 BoofCV 可以完成这项工作 - 所以我从ExampleDetectQrCode存储库中复制了代码,但它抛出了一些错误......
var cannot be resolved to a type
VisualizeShapes cannot be resolved
VisualizeShapes cannot be resolved
ShowImages cannot be resolved
On my imports I'm also getting:在我的进口商品中,我还得到:
The import boofcv.gui cannot be resolved
I used Maven to implement BoofCV, I'm very new to Maven but I think I've done it right (again just copied straight from the repo home ):我使用 Maven 来实现 BoofCV,我对 Maven很陌生,但我认为我做得对(再次直接从 repo home复制):
<dependency>
<groupId>org.boofcv</groupId>
<artifactId>boofcv-core</artifactId>
<version>0.40.1</version>
</dependency>
Any help would be greatly appreciated, cheers任何帮助将不胜感激,干杯
You need to import the "boofcv-swing" artifact to have the built in Swing components.您需要导入“boofcv-swing”工件以拥有内置的 Swing 组件。
<dependency>
<groupId>org.boofcv</groupId>
<artifactId>boofcv-swing</artifactId>
<version>0.40.1</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.