feat: 切换后端至PaddleOCR-NCNN,切换工程为CMake
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
This commit is contained in:
39
3rdparty/opencv-4.5.4/samples/cpp/tutorial_code/introduction/display_image/display_image.cpp
vendored
Normal file
39
3rdparty/opencv-4.5.4/samples/cpp/tutorial_code/introduction/display_image/display_image.cpp
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
//! [includes]
|
||||
#include <opencv2/core.hpp>
|
||||
#include <opencv2/imgcodecs.hpp>
|
||||
#include <opencv2/highgui.hpp>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace cv;
|
||||
//! [includes]
|
||||
|
||||
int main()
|
||||
{
|
||||
//! [imread]
|
||||
std::string image_path = samples::findFile("starry_night.jpg");
|
||||
Mat img = imread(image_path, IMREAD_COLOR);
|
||||
//! [imread]
|
||||
|
||||
//! [empty]
|
||||
if(img.empty())
|
||||
{
|
||||
std::cout << "Could not read the image: " << image_path << std::endl;
|
||||
return 1;
|
||||
}
|
||||
//! [empty]
|
||||
|
||||
//! [imshow]
|
||||
imshow("Display window", img);
|
||||
int k = waitKey(0); // Wait for a keystroke in the window
|
||||
//! [imshow]
|
||||
|
||||
//! [imsave]
|
||||
if(k == 's')
|
||||
{
|
||||
imwrite("starry_night.png", img);
|
||||
}
|
||||
//! [imsave]
|
||||
|
||||
return 0;
|
||||
}
|
14
3rdparty/opencv-4.5.4/samples/cpp/tutorial_code/introduction/documentation/documentation.cpp
vendored
Normal file
14
3rdparty/opencv-4.5.4/samples/cpp/tutorial_code/introduction/documentation/documentation.cpp
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
|
||||
/**
|
||||
* @function main
|
||||
* @brief Main function
|
||||
*/
|
||||
int main( void )
|
||||
{
|
||||
//! [hello_world]
|
||||
std::cout << "Hello World!";
|
||||
//! [hello_world]
|
||||
|
||||
return 0;
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
#include <opencv2/core.hpp>
|
||||
#include <opencv2/imgcodecs.hpp>
|
||||
#include <opencv2/highgui.hpp>
|
||||
#include <iostream>
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
||||
int main( int argc, char** argv )
|
||||
{
|
||||
if( argc != 2)
|
||||
{
|
||||
cout <<" Usage: " << argv[0] << " ImageToLoadAndDisplay" << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Mat image;
|
||||
image = imread(argv[1], IMREAD_COLOR); // Read the file
|
||||
|
||||
if( image.empty() ) // Check for invalid input
|
||||
{
|
||||
cout << "Could not open or find the image" << std::endl ;
|
||||
return -1;
|
||||
}
|
||||
|
||||
namedWindow( "Display window", WINDOW_AUTOSIZE ); // Create a window for display.
|
||||
imshow( "Display window", image ); // Show our image inside it.
|
||||
|
||||
waitKey(0); // Wait for a keystroke in the window
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user