28 lines
1.1 KiB
C++
28 lines
1.1 KiB
C++
#pragma once
|
||
|
||
|
||
#include "HalconCpp.h"
|
||
#include<HalconCpp.h>
|
||
#include <opencv2/opencv.hpp>
|
||
#include <opencv2/imgcodecs/imgcodecs.hpp>
|
||
|
||
using namespace HalconCpp;
|
||
|
||
//**********************************************************************
|
||
//Function Name: Inspenction_stargazer_pin
|
||
//Author:
|
||
//Description: 检测stargazer产品的pin针,
|
||
//Input:
|
||
// in_Image, 图像(bmp),
|
||
// in_Filepath, 模板文件路径,
|
||
|
||
//output: out_OK_Pings, OK的pin针坐标(x,y,width,height)
|
||
// out_NG_Pings, NG的pin针坐标(x,y,width,height)
|
||
// out_Flag, 算法执行的标志位; 0, 算法执行NG 1,算法执行OK 2,算法报错err
|
||
extern "C" __declspec(dllexport) void __stdcall Inspenction_stargazer_pin(HObject ho_in_Image, HTuple hv_in_FilePath,
|
||
HTuple * hv_out_OK_Pings, HTuple * hv_out_NG_Pings, HTuple * hv_out_Flag);
|
||
// **********************************************************************
|
||
|
||
void Get_Rectangle2_Corner(HObject ho_Rectangle, HTuple* hv_out_Row, HTuple* hv_out_Col);
|
||
|