Files
handleaiuinew/env/3DAI/include/3DAlg.h
T
2024-08-07 09:16:35 +00:00

28 lines
1.1 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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);