diff --git a/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/bd0a27c2-fe83-416c-8a2f-04d63a469b59.vsidx b/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/bd0a27c2-fe83-416c-8a2f-04d63a469b59.vsidx new file mode 100644 index 0000000..1e5067e Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/bd0a27c2-fe83-416c-8a2f-04d63a469b59.vsidx differ diff --git a/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/c18c987d-eeb3-4441-8e58-e3702302c703.vsidx b/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/c18c987d-eeb3-4441-8e58-e3702302c703.vsidx new file mode 100644 index 0000000..0988c46 Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/FileContentIndex/c18c987d-eeb3-4441-8e58-e3702302c703.vsidx differ diff --git a/Code/test_blank_point/.vs/test_blank_point/v17/.suo b/Code/test_blank_point/.vs/test_blank_point/v17/.suo new file mode 100644 index 0000000..8375f5e Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/v17/.suo differ diff --git a/Code/test_blank_point/.vs/test_blank_point/v17/Browse.VC.db b/Code/test_blank_point/.vs/test_blank_point/v17/Browse.VC.db new file mode 100644 index 0000000..a1c28eb Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/v17/Browse.VC.db differ diff --git a/Code/test_blank_point/.vs/test_blank_point/v17/DocumentLayout.json b/Code/test_blank_point/.vs/test_blank_point/v17/DocumentLayout.json new file mode 100644 index 0000000..6506644 --- /dev/null +++ b/Code/test_blank_point/.vs/test_blank_point/v17/DocumentLayout.json @@ -0,0 +1,52 @@ +{ + "Version": 1, + "WorkspaceRootPath": "E:\\c\u002B\u002B\\test_blank_point\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{0467BAD5-138D-48B2-AF78-2C600E82CD3B}|test_blank_point\\test_blank_point.vcxproj|E:\\c\u002B\u002B\\test_blank_point\\test_blank_point\\test_blank_point.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}", + "RelativeMoniker": "D:0:0:{0467BAD5-138D-48B2-AF78-2C600E82CD3B}|test_blank_point\\test_blank_point.vcxproj|solutionrelative:test_blank_point\\test_blank_point.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + }, + { + "AbsoluteMoniker": "D:0:0:{A2FE74E1-B743-11D0-AE1A-00A0C90FFFC3}|\u003CMiscFiles\u003E|E:\\opencv\\opencv\\build\\include\\opencv2\\core\\base.hpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 1, + "Children": [ + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "base.hpp", + "DocumentMoniker": "E:\\opencv\\opencv\\build\\include\\opencv2\\core\\base.hpp", + "RelativeDocumentMoniker": "..\\..\\opencv\\opencv\\build\\include\\opencv2\\core\\base.hpp", + "ToolTip": "E:\\opencv\\opencv\\build\\include\\opencv2\\core\\base.hpp", + "RelativeToolTip": "..\\..\\opencv\\opencv\\build\\include\\opencv2\\core\\base.hpp", + "ViewState": "AQIAABQBAAAAAAAAAAASwD0BAAAAAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000680|", + "WhenOpened": "2024-04-18T01:26:12.482Z" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "test_blank_point.cpp", + "DocumentMoniker": "E:\\c\u002B\u002B\\test_blank_point\\test_blank_point\\test_blank_point.cpp", + "RelativeDocumentMoniker": "test_blank_point\\test_blank_point.cpp", + "ToolTip": "E:\\c\u002B\u002B\\test_blank_point\\test_blank_point\\test_blank_point.cpp", + "RelativeToolTip": "test_blank_point\\test_blank_point.cpp", + "ViewState": "AQIAAHkAAAAAAAAAAAAIwDgAAAA6AAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|", + "WhenOpened": "2024-04-17T04:29:25.574Z", + "EditorCaption": "" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Code/test_blank_point/.vs/test_blank_point/v17/Solution.VC.db b/Code/test_blank_point/.vs/test_blank_point/v17/Solution.VC.db new file mode 100644 index 0000000..601f6a6 Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/v17/Solution.VC.db differ diff --git a/Code/test_blank_point/.vs/test_blank_point/v17/ipch/AutoPCH/811cfb59b960baf7/TEST_BLANK_POINT.ipch b/Code/test_blank_point/.vs/test_blank_point/v17/ipch/AutoPCH/811cfb59b960baf7/TEST_BLANK_POINT.ipch new file mode 100644 index 0000000..64d09fa Binary files /dev/null and b/Code/test_blank_point/.vs/test_blank_point/v17/ipch/AutoPCH/811cfb59b960baf7/TEST_BLANK_POINT.ipch differ diff --git a/Code/test_blank_point/test_blank_point.sln b/Code/test_blank_point/test_blank_point.sln new file mode 100644 index 0000000..af0988b --- /dev/null +++ b/Code/test_blank_point/test_blank_point.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.9.34723.18 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test_blank_point", "test_blank_point\test_blank_point.vcxproj", "{0467BAD5-138D-48B2-AF78-2C600E82CD3B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Debug|x64.ActiveCfg = Debug|x64 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Debug|x64.Build.0 = Debug|x64 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Debug|x86.ActiveCfg = Debug|Win32 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Debug|x86.Build.0 = Debug|Win32 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Release|x64.ActiveCfg = Release|x64 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Release|x64.Build.0 = Release|x64 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Release|x86.ActiveCfg = Release|Win32 + {0467BAD5-138D-48B2-AF78-2C600E82CD3B}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {641FDD2B-817B-4101-B5E1-14C438B5BA30} + EndGlobalSection +EndGlobal diff --git a/Code/test_blank_point/test_blank_point/test_blank_point.cpp b/Code/test_blank_point/test_blank_point/test_blank_point.cpp new file mode 100644 index 0000000..4283940 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/test_blank_point.cpp @@ -0,0 +1,314 @@ +// test_blank_point.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 +// + +// 垂直线.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 +// + +#include +#include +#include +#include +#define _USE_MATH_DEFINES +#include +#include + + +using namespace cv; +using namespace std; + + +class image +{ +public: + string input_path="E:\\project\\Chip detection\\240407-shaft\\short\\Image_20240407143655906.bmp"; + string output_path="E:\\project\\Chip detection\\240407\\short"; +}; +// 计算旋转矩阵 +Mat getRotationMatrix(Point2f center, float angle, float scale) { + Mat rot_mat = getRotationMatrix2D(center, angle, scale); + return rot_mat; +} + + +int Marginaljudgment(const cv::Mat& binaryImage) +{ + int Marginal_line = 0; + for (int row = 0; row < binaryImage.rows; ++row) + { + int blackPixelCount = 0; + + for (int col = 0; col < binaryImage.cols; ++col) + { + if (binaryImage.at(row, col) < 15) // 黑色像素 + { + ++blackPixelCount; + } + } + if (blackPixelCount == binaryImage.cols) + { + Marginal_line = row; + } + /*else if (blackPixelCount == binaryImage.cols && row > binaryImage.rows / 2) + { + Marginal_line = binaryImage.rows - row; + }*/ + } + std::cerr << "cols:" << binaryImage.cols << std::endl; + std::cerr << "rows:" << binaryImage.rows << std::endl; + return Marginal_line; +} + + + +int main(int argc, char** argv) { + string input_image_path = "E:\\project\\Chip detection\\240407-shaft\\short\\Image_20240407144459269.bmp"; + Mat image = imread(input_image_path); + if (image.empty()) + { + std::cerr << "Failed to load the binary image." << std::endl; + return -1; + } + Mat gray_image; + cvtColor(image, gray_image, COLOR_BGR2GRAY); + int Marginal_line = Marginaljudgment(gray_image); + std::cerr << "Marginal_line:" << Marginal_line << std::endl; + // 进行边缘检测(这里以Canny算法为例) + cv::Mat edges; + cv::Canny(image, edges, 50, 150); + + // 保存边缘检测结果图片 + //cv::imwrite("E:\\project\\Chip detection\\240407\\image_txt\\edges_detected.bmp", edges); + + + // 获取边缘点的坐标 + std::vector edgePoints; + cv::findNonZero(edges, edgePoints); + + bool foundCondition = false; + cv::Point first_point(0, 0); + cv::Point second_point(0, 0); + cv::Point last_point(0, 0); + cv::Point second_last_point(0,0); + + Point list1 = edgePoints[0]; + Point list2 = edgePoints[1]; + + for (size_t i = 1; i < edgePoints.size()-1; i++) + { + if (edgePoints[i].y == edgePoints[i + 1].y && edgePoints[i + 1].x - edgePoints[i].x > 1) + { + first_point = edgePoints[i]; // 首个边缘点 + second_point = edgePoints[i + 1]; // 第二个边缘点 + break; + } + } + for (size_t i = edgePoints.size() - 1; i >0; i--) + { + if (edgePoints[i].y == edgePoints[i - 1].y && edgePoints[i].x - edgePoints[i-1].x > 1) + { + last_point = edgePoints[i]; // 首个边缘点 + second_last_point = edgePoints[i - 1]; // 第二个边缘点 + break; + } + } + + std::cout << "first_point: " << first_point << std::endl; + std::cout << "second_point: " << second_point << std::endl; + std::cout << "last_point: " << last_point << std::endl; + std::cout << "second_last_point: " << second_last_point << std::endl; + + + // 计算首个和第二个边缘点构成线段的中点 + cv::Point mid_point_first_segment((first_point.x + second_point.x) / 2, (first_point.y + second_point.y) / 2); + std::cout << "mid_point_first_segment: " << mid_point_first_segment << std::endl; + + // 计算倒数首个和倒数第二个边缘点构成线段的中点 + cv::Point mid_point_last_segment((last_point.x + second_last_point.x) / 2, (last_point.y + second_last_point.y) / 2); + std::cout << "mid_point_last_segment: " << mid_point_last_segment << std::endl; + + // 计算两个中点的斜率 + double slope = (mid_point_last_segment.y - mid_point_first_segment.y) / (mid_point_last_segment.x - mid_point_first_segment.x); + + //std::cout << "Slope between the two midpoints: " << slope << std::endl; + + // 计算角度 + double angle = atan(slope) * 180 / M_PI; + + std::cout << "Angle in degrees: " << angle << std::endl; + double Rotateangle; + if (angle > 0) + { + Rotateangle = angle - 90; + } + else + { + Rotateangle = angle + 90; + } + + double scale = 1.0; + + Point2f center = mid_point_last_segment; + //Point2f center = edgePoints[edgePoints.size()]; + std::cout << "center: " << center << std::endl; + + Mat rot_mat = getRotationMatrix(center, Rotateangle, scale); + + Mat rotated_image; + Size img_size = gray_image.size(); + warpAffine(edges, rotated_image, rot_mat, img_size, INTER_LINEAR, BORDER_CONSTANT, Scalar(0)); + + string output_path_center("E:\\project\\Chip detection\\240407\\short\\result_image.jpg"); + imwrite(output_path_center, rotated_image); + + std::vector rotatedPoints; + cv::findNonZero(rotated_image, rotatedPoints); + + /*for (const cv::Point& point : rotatedPoints) + { + std::cout << "Edge Point: (" << point.x << ", " << point.y << ")" << std::endl; + }*/ + + + //分组计算同一行边缘点列坐标的差值 + std::map> rowColDifferences; // 存储每行(键)对应的列坐标差值(值) + + for (size_t i = 1; i < rotatedPoints.size(); ++i) + { + const cv::Point& prevPoint = rotatedPoints[i - 1]; + const cv::Point& currPoint = rotatedPoints[i]; + + // 同一行的边缘点才计算差值 + if (prevPoint.y == currPoint.y) + { + int colDiff = currPoint.x - prevPoint.x; + if (colDiff>1) + { + rowColDifferences[currPoint.y].push_back(colDiff); + } + } + } + + // 打印或进一步分析每一行的列坐标差值 + for (const auto& rowEntry : rowColDifferences) + { + int row = rowEntry.first; + const std::vector& colDiffs = rowEntry.second; + + std::cout << "Row " << row << ": Column differences:"; + for (int diff : colDiffs) + { + std::cout << " " << diff; + } + std::cout << std::endl; + } + + return 0; +} + +/*int main(int argc, char** argv) { + + if (argc != 2) // 检查命令行参数是否正确(期望一个输入图片路径) + { + std::cerr << "Usage: program_name input_image_path" << std::endl; + return -1; + } + + image Current_image; + string input_image_path = Current_image.input_path; + std::string file_extension = input_image_path.substr(input_image_path.find_last_of(".") + 1); + + Mat image = imread(input_image_path); + + // 将图片转换为灰度图像 + Mat gray_image; + cvtColor(image, gray_image, COLOR_BGR2GRAY); + + if (gray_image.empty()) + { + std::cerr << "Failed to load the binary image." << std::endl; + return -1; + } + + cv::Point middleBlackPixelFirstRow = getMiddleBlackPixelInRow(gray_image, gray_image.rows / 4);// First row + cv::Point middleBlackPixelLastRow = getMiddleBlackPixelInRow(gray_image, gray_image.rows / 4 * 3); // Last row + + double angleInDegrees = CalculatingAngle(middleBlackPixelFirstRow, middleBlackPixelLastRow); + + float scale = 1.0; // 不缩放,保持原比例 + + // 计算旋转中心(这里假设以最后一行的黑色像素作为旋转中心) + Size img_size = gray_image.size(); + cv::Point2f center; + center.x = (middleBlackPixelFirstRow.x + middleBlackPixelLastRow.x) / 2; + center.y = (middleBlackPixelFirstRow.y + middleBlackPixelLastRow.y) / 2; + //int width = image.cols; + //int height = image.rows; + //center.x = width / 2; + //center.y = height / 2; + double angel = angleInDegrees - 90; + std::cout << "center: " << center << std::endl; + std::cout << "cols " << image.cols << std::endl; + + // 计算旋转矩阵 + Mat rot_mat = getRotationMatrix(center, angel, scale); + + // 旋转图像 + Mat rotated_image_center; + warpAffine(gray_image, rotated_image_center, rot_mat, img_size, INTER_LINEAR, BORDER_CONSTANT, Scalar(255)); + + // 保存旋转后的图像 + //string output_path_center = "E:\\project\\Chip detection\\240407\\short\\rotated_Image_20240407144606626.jpg"; + string output_path_center("E:\\project\\Chip detection\\240407\\short\\result_image.jpg"); + imwrite(output_path_center, rotated_image_center); + + std::string output_txt_path("E:\\project\\Chip detection\\240407\\short\\result_image.txt"); // 生成与输入图片同名但扩展名为.txt的输出文件路径 + ofstream outputFile(output_txt_path); // 创建输出文件 + + if (!outputFile.is_open()) + { + cerr << "Error: Could not open or create the output file!" << endl; + return -1; + } + + for (int row = 0; row < rotated_image_center.rows; ++row) + { + int blackPixelCount = 0; + + for (int col = 0; col < rotated_image_center.cols; ++col) + { + if (rotated_image_center.at(row, col) < 10) // 黑色像素 + { + ++blackPixelCount; + } + } + + outputFile << blackPixelCount << endl; // 输出当前行的黑色像素数量 + } + + outputFile.close(); // 关闭输出文件 + + return 0; +}*/ + +// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 +// 调试程序: F5 或调试 >“开始调试”菜单 + +// 入门使用技巧: +// 1. 使用解决方案资源管理器窗口添加/管理文件 +// 2. 使用团队资源管理器窗口连接到源代码管理 +// 3. 使用输出窗口查看生成输出和其他消息 +// 4. 使用错误列表窗口查看错误 +// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 +// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件 + + +// 运行程序: Ctrl + F5 或调试 >“开始执行(不调试)”菜单 +// 调试程序: F5 或调试 >“开始调试”菜单 + +// 入门使用技巧: +// 1. 使用解决方案资源管理器窗口添加/管理文件 +// 2. 使用团队资源管理器窗口连接到源代码管理 +// 3. 使用输出窗口查看生成输出和其他消息 +// 4. 使用错误列表窗口查看错误 +// 5. 转到“项目”>“添加新项”以创建新的代码文件,或转到“项目”>“添加现有项”以将现有代码文件添加到项目 +// 6. 将来,若要再次打开此项目,请转到“文件”>“打开”>“项目”并选择 .sln 文件 diff --git a/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj new file mode 100644 index 0000000..c1315a0 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj @@ -0,0 +1,140 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {0467bad5-138d-48b2-af78-2c600e82cd3b} + testblankpoint + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + E:\opencv\opencv\build\include;$(IncludePath) + E:\opencv\opencv\build\x64\vc14\lib;E:\opencv\opencv\build\x64\vc15\lib;$(LibraryPath) + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + opencv_world3416.lib;opencv_world3416d.lib;%(AdditionalDependencies) + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.filters b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.filters new file mode 100644 index 0000000..924bd13 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + 源文件 + + + \ No newline at end of file diff --git a/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.user b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/test_blank_point.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.exe.recipe b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.exe.recipe new file mode 100644 index 0000000..ebf8700 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.exe.recipe @@ -0,0 +1,11 @@ + + + + + E:\c++\test_blank_point\x64\Debug\test_blank_point.exe + + + + + + \ No newline at end of file diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.ilk b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.ilk new file mode 100644 index 0000000..a6e1025 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.ilk differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.log b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.log new file mode 100644 index 0000000..02a4912 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.log @@ -0,0 +1,5 @@ + test_blank_point.cpp +C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\filesystem(12): warning STL4038: The contents of are available only with C++17 or later. +E:\c++\test_blank_point\test_blank_point\test_blank_point.cpp(154,58): warning C4244: “参数”: 从“double”转换到“float”,可能丢失数据 +E:\c++\test_blank_point\test_blank_point\test_blank_point.cpp(154,45): warning C4244: “参数”: 从“double”转换到“float”,可能丢失数据 + test_blank_point.vcxproj -> E:\c++\test_blank_point\x64\Debug\test_blank_point.exe diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.obj b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.obj new file mode 100644 index 0000000..1e07564 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.obj differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.command.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.command.1.tlog new file mode 100644 index 0000000..0e52753 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.command.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.read.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.read.1.tlog new file mode 100644 index 0000000..202044d Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.read.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.write.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.write.1.tlog new file mode 100644 index 0000000..2495889 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/CL.write.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/Cl.items.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/Cl.items.tlog new file mode 100644 index 0000000..f79f816 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/Cl.items.tlog @@ -0,0 +1 @@ +E:\c++\test_blank_point\test_blank_point\test_blank_point.cpp;E:\c++\test_blank_point\test_blank_point\x64\Debug\test_blank_point.obj diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.command.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.command.1.tlog new file mode 100644 index 0000000..b3bf5c4 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.command.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.read.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.read.1.tlog new file mode 100644 index 0000000..7d1182c Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.read.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.secondary.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.secondary.1.tlog new file mode 100644 index 0000000..086f3c7 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.secondary.1.tlog @@ -0,0 +1,2 @@ +^E:\C++\TEST_BLANK_POINT\TEST_BLANK_POINT\X64\DEBUG\TEST_BLANK_POINT.OBJ +E:\c++\test_blank_point\test_blank_point\x64\Debug\test_blank_point.ilk diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.write.1.tlog b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.write.1.tlog new file mode 100644 index 0000000..e76e9d3 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/link.write.1.tlog differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/test_blank_point.lastbuildstate b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/test_blank_point.lastbuildstate new file mode 100644 index 0000000..d9a3110 --- /dev/null +++ b/Code/test_blank_point/test_blank_point/x64/Debug/test_blank_point.tlog/test_blank_point.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.39.33519:TargetPlatformVersion=10.0.22621.0: +Debug|x64|E:\c++\test_blank_point\| diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/vc143.idb b/Code/test_blank_point/test_blank_point/x64/Debug/vc143.idb new file mode 100644 index 0000000..8a4df06 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/vc143.idb differ diff --git a/Code/test_blank_point/test_blank_point/x64/Debug/vc143.pdb b/Code/test_blank_point/test_blank_point/x64/Debug/vc143.pdb new file mode 100644 index 0000000..ae96dc6 Binary files /dev/null and b/Code/test_blank_point/test_blank_point/x64/Debug/vc143.pdb differ diff --git a/Code/test_blank_point/x64/Debug/test_blank_point.exe b/Code/test_blank_point/x64/Debug/test_blank_point.exe new file mode 100644 index 0000000..ac3452f Binary files /dev/null and b/Code/test_blank_point/x64/Debug/test_blank_point.exe differ diff --git a/Code/test_blank_point/x64/Debug/test_blank_point.pdb b/Code/test_blank_point/x64/Debug/test_blank_point.pdb new file mode 100644 index 0000000..0b4d2be Binary files /dev/null and b/Code/test_blank_point/x64/Debug/test_blank_point.pdb differ diff --git a/项目资料/240407-shaft/long/Image_20240407143126441.bmp b/项目资料/240407-shaft/long/Image_20240407143126441.bmp new file mode 100644 index 0000000..af87a95 Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143126441.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143336056.bmp b/项目资料/240407-shaft/long/Image_20240407143336056.bmp new file mode 100644 index 0000000..7099ca7 Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143336056.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143419847.bmp b/项目资料/240407-shaft/long/Image_20240407143419847.bmp new file mode 100644 index 0000000..4f5cd57 Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143419847.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143432540.bmp b/项目资料/240407-shaft/long/Image_20240407143432540.bmp new file mode 100644 index 0000000..dff182e Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143432540.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143432540.bmprotated_bmp.jpg b/项目资料/240407-shaft/long/Image_20240407143432540.bmprotated_bmp.jpg new file mode 100644 index 0000000..5630f55 Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143432540.bmprotated_bmp.jpg differ diff --git a/项目资料/240407-shaft/long/Image_20240407143459559.bmp b/项目资料/240407-shaft/long/Image_20240407143459559.bmp new file mode 100644 index 0000000..9578655 Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143459559.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143551006.bmp b/项目资料/240407-shaft/long/Image_20240407143551006.bmp new file mode 100644 index 0000000..9167c3f Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143551006.bmp differ diff --git a/项目资料/240407-shaft/long/Image_20240407143655906.bmp b/项目资料/240407-shaft/long/Image_20240407143655906.bmp new file mode 100644 index 0000000..054f6fc Binary files /dev/null and b/项目资料/240407-shaft/long/Image_20240407143655906.bmp differ diff --git a/项目资料/240407-shaft/short/Image_20240407144259116.bmp b/项目资料/240407-shaft/short/Image_20240407144259116.bmp new file mode 100644 index 0000000..3c36def Binary files /dev/null and b/项目资料/240407-shaft/short/Image_20240407144259116.bmp differ diff --git a/项目资料/240407-shaft/short/Image_20240407144357918.bmp b/项目资料/240407-shaft/short/Image_20240407144357918.bmp new file mode 100644 index 0000000..8eb8f3f Binary files /dev/null and b/项目资料/240407-shaft/short/Image_20240407144357918.bmp differ diff --git a/项目资料/240407-shaft/short/Image_20240407144459269.bmp b/项目资料/240407-shaft/short/Image_20240407144459269.bmp new file mode 100644 index 0000000..8c03090 Binary files /dev/null and b/项目资料/240407-shaft/short/Image_20240407144459269.bmp differ diff --git a/项目资料/240407-shaft/short/Image_20240407144541127.bmp b/项目资料/240407-shaft/short/Image_20240407144541127.bmp new file mode 100644 index 0000000..b2d0b80 Binary files /dev/null and b/项目资料/240407-shaft/short/Image_20240407144541127.bmp differ diff --git a/项目资料/240407-shaft/short/Image_20240407144606626.bmp b/项目资料/240407-shaft/short/Image_20240407144606626.bmp new file mode 100644 index 0000000..77e7642 Binary files /dev/null and b/项目资料/240407-shaft/short/Image_20240407144606626.bmp differ diff --git a/项目资料/240407-shaft/参数.txt b/项目资料/240407-shaft/参数.txt new file mode 100644 index 0000000..2a7385c --- /dev/null +++ b/项目资料/240407-shaft/参数.txt @@ -0,0 +1,4 @@ +相机 MV-CS200-10UC +镜头 TCLWD080-110-3M +光源 VLPXBGSD50X50W-DR +曝光:3200 \ No newline at end of file diff --git a/项目资料/240407-shaft/工位图.jpg b/项目资料/240407-shaft/工位图.jpg new file mode 100644 index 0000000..4bc4cd8 Binary files /dev/null and b/项目资料/240407-shaft/工位图.jpg differ