Code Monkey home page Code Monkey logo

integratedsoftware's Introduction

IntegratedSoftware

视觉软件,2020年05月修整期间编写的工业集成软件框架,目前不从事该行业,因此开放出来交流学习。软件已作删减,仅保留视觉部分,需自行添加Halcon的DLL方可正常运行软件。希望对大家有帮助。

*想了解相机模块的朋友比较多,但因个人资源有限,相机代码并没有作过多编写和测试优化,害怕误导大家的学习方向。现软件上传了相机部分的代码,仅供大家参考,望见谅。

Halcon Vision software. The software has been abridged to keep only the vision part, you need to add Halcon's DLL by yourself to run the software. I hope to be helpful to everyone.

*About the camera module, because of limited personal resources, the camera code is not too much writing and testing optimization. Now the software uploads the code routines of the camera part for your reference only.

开发环境/Development Environment

● Visual Studio 2019

● .NET Framework 4.7.2

● Halcon 12

解决方案介绍/Solution Introduction

● AutomationSystem

软件运行主窗体项目。

The software runs the main form project.

● BuildDLL

所有生成的引用DLL集中放置在此处,可通过BuildDLL.sln统一管理需要编译生成的项目。

All generated reference DLLs are centrally placed here, and you can use BuildDLL.sln to unify the management of projects that need to be compiled and generated.

● Calibration

编译生成的标定DLL放置位置。

The location of the calibrated DLL placement generated by the compilation.

● CameraDLL

编译生成的相机DLL放置位置。

Placement of the camera DLL generated by the compiler.

● CommonLibrary

个人常用的工具类项目,含文件读取写入、常用变量类型扩展、控件操作等功能。

Personal tools commonly used projects , including file reading and writing , common variable type expansion , control operations and other functions .

● ExternTool

编译生成的图像处理工具DLL放置位置。

Placement of the image processing tool DLL generated by the compiler.

● Halcon

含Halcon操作窗体、Halcon图像处理工具项目。

Contains Halcon operation form, Halcon image processing tools project.

● ThirdPartyDLL

集中放置需要引用的第三方DLL。

Centralized placement of third-party DLLs that need to be referenced.

● UIControl

窗体自定义控件项目。

Forms custom control project.

编译生成流程/Compile Generation Process

注意:该项目不提供Halcon相关的DLL,需要自行解决,可使用Halcon 12外的其他版本。

Note: The project does not provide Halcon related DLLs, you need to solve it by yourself, you can use other versions other than Halcon 12.

① 放置Halcon软件的DLL:halcondotnet.dll、halcon.dll至ThirdPartyDLL。

Place the Halcon software DLLs: halcondotnet.dll, halcon.dll to ThirdPartyDLL.

② 打开BuildDLL.sln,选择重新生成解决方案,选择AutomationSystem为启动项目,即可运行软件。

Open BuildDLL.sln, select Rebuild Solution and select AutomationSystem as the startup project to run the software.

③ 如果使用的是Halcon 64位DLL,编译时请取消勾选首选32位。

If you are using Halcon 64-bit DLL, uncheck Preferred 32-bit when compiling. image

注意:项目编译完成后,运行软件无法显示工具箱,有可能是路径原因导致以下代码无法复制粘贴相关文件到输出目录,请手动复制粘贴文件到输出目录下。

Note: After the project is compiled, the toolbox cannot be displayed when running the software, it may be due to the path that causes the following code to fail to copy and paste the relevant files to the output directory, please manually copy and paste the files to the output directory.

image

integratedsoftware's People

Contributors

jiaowomomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

integratedsoftware's Issues

halcon的代码

我有个问题额,之前不是写C#的,因为你是把halcon的算子现在都集成到了C#工程里面了嘛,但是我如果想看下halcon的算子源代码怎么看呢,就是你集成到c#之前的halcon代码是什么样的呢,能看到吗

1

想要看看这个咋样111111111111111111111

编译后复制报错

@jiaowomomo 你好,问一下按照readme将dll添加到thirdPartyDll后打开BuildDll编译,出现下面报错
2
已取消勾选首选32位

1

引用

好多报错,都是找不到对应的引用

Message=试图加载格式不正确的程序

D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\bin\Debug\Default.jw
里面没这个文件,
image

System.BadImageFormatException
HResult=0x8007000B
Message=试图加载格式不正确的程序。 (异常来自 HRESULT:0x8007000B)
Source=halcondotnet
StackTrace:
在 HalconDotNet.HalconAPI.CreateProcedure(Int32 procIndex, IntPtr& proc)
在 HalconDotNet.HalconAPI.PreCall(Int32 procIndex)
在 HalconDotNet.HOperatorSet.SetCheck(HTuple check)
在 HalconDotNet.HWindowControl.createWindow(Boolean repair)
在 HalconDotNet.HWindowControl..ctor()
在 Halcon.Functions.HObjectViewer.InitializeComponent() 在 D:\jiagou\c#\IntegratedSoftware-master\Halcon\Functions\HObjectViewer.Designer.cs 中: 第 33 行
在 Halcon.Functions.HObjectViewer..ctor() 在 D:\jiagou\c#\IntegratedSoftware-master\Halcon\Functions\HObjectViewer.cs 中: 第 196 行
在 UIControl.HalconVision.HShowWindow.InitializeComponent() 在 D:\jiagou\c#\IntegratedSoftware-master\UIControl\UIControl.HalconVision\HShowWindow.Designer.cs 中: 第 36 行
在 UIControl.HalconVision.HShowWindow..ctor() 在 D:\jiagou\c#\IntegratedSoftware-master\UIControl\UIControl.HalconVision\HShowWindow.cs 中: 第 20 行
在 AutomationSystem.WindowForm.InitializeComponent() 在 D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\WindowForm.Designer.cs 中: 第 31 行
在 AutomationSystem.WindowForm..ctor() 在 D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\WindowForm.cs 中: 第 20 行
在 AutomationSystem.SystemMainForm.NewWindowForm() 在 D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\SystemMainForm.cs 中: 第 280 行
在 AutomationSystem.SystemMainForm.ResetFormLocation() 在 D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\SystemMainForm.cs 中: 第 124 行
在 AutomationSystem.SystemMainForm.SystemMainForm_Load(Object sender, EventArgs e) 在 D:\jiagou\c#\IntegratedSoftware-master\AutomationSystem\SystemMainForm.cs 中: 第 94 行
在 System.Windows.Forms.Form.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

软件可以运行,使用流程遇到问题

当加载图像之后,如果用“ROI设置”功能,则在运行的时候报错,get_drawing_object_iconic的halcon句柄为空,是不是设置有问题?报错显示如附件

工具箱

程序正常运行了,但是工具箱界面怎么看不到具体工具选项啊
b1fbbea2c2d9515925307b5ed5d407d

工具栏没有工具

按照README.md步骤操作,编译成功,也能运行,就是发现工具栏没有工具,看到项目生成事件会自动拷贝工具文件到运行目录指定文件夹,但实际查看运行目录下为空,查看脚本逻辑发现拷贝的文件源也是空的,也就是github项目clone下来就没有这些工具目录对应的文件。
111
222

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.