我想在COBOL中运行这个hello world程序:
Identification Division. program-id. HelloWorld.
Procedure Division.
Display 'Bonjour '.
Display 'Comment allez vous ? ' .
goback.
Run Code Online (Sandbox Code Playgroud)
但是,我有这个错误:
In file included from /var/folders/t7/vdtg6q9x6lggwrpz06f0fz9h0000gn/T//cob4607_0.c:13:
/usr/local/Cellar/open-cobol/1.1/include/libcob.h:24:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
^
1 error generated.
Run Code Online (Sandbox Code Playgroud)
为了编译,我做了: cobc -x -free helloworld.cob
我使用的COBOL编译器是open-cobol,我使用以下命令行安装:brew install open-cobol.
我试图卸载gmp(brew uninstall gmp),然后用两种不同的方法重新安装它:
brew install gmp和bash <(curl https://install-geth.ethereum.org -L).我仍然有同样的错误.
我开始了一个关于检测的项目。我的想法是对图像(Mat)的每个像素进行排名。然后,我将能够退出哪种颜色占主导地位。
困难在于颜色不是唯一的。例如,绿色是 rgb(0, 255, 0),但也几乎是 rgb(10, 240, 20)。
我排名的目标是退出颜色几乎相同的像素。然后,通过倾注,我想我可以找到我的物体。
所以,我的问题是:这是一种按颜色对像素进行排名的方法吗?
提前非常感谢您的回答。