主頁 >  其他 > OpenCV 之 透視 n 點問題

OpenCV 之 透視 n 點問題

2021-09-08 17:13:13 其他

    透視 n 點問題,源自相機標定,是計算機視覺的經典問題,廣泛應用在機器人定位、SLAM、AR/VR、攝影測量等領域

1  PnP 問題

1.1  定義

    已知:相機的內參和畸變系數;世界坐標系中,n 個空間點坐標,以及投影在像平面上的像素坐標

    求解:相機在世界坐標系下的位姿 R 和 t,即 {W} 到 {C} 的變換矩陣 $\;^w_c\bm{T} $,如下圖:

                

    世界坐標系中的 3d 空間點,與投影到像平面的 2d 像素點,兩者之間的關系為:

    $\quad s \begin{bmatrix} u \\ v \\ 1 \end{bmatrix}  = \begin{bmatrix} f_x & 0 & c_x \\ 0 & f_y & c_y \\ 0 & 0 & 1 \end{bmatrix}  \begin{bmatrix} r_{11} & r_{12} & r_{13} & t_1 \\ r_{21} & r_{22} & r_{23} & t_2 \\ r_{31} & r_{32} & r_{33} & t_3 \end{bmatrix}  \begin{bmatrix} X_w \\ Y_w \\ Z_w\\ 1 \end{bmatrix} $

1.2  分類

    根據給定空間點的數量,可將 PnP 問題分為兩類:

    第一類  3≤n≤5,選取的空間點較少,可通過聯立方程組的方式求解,精度易受影像噪聲影響,魯棒性較差

    第二類  n≥6,選取的空間點較多,可轉化為求解超定方程的問題,一般側重于魯棒性和實時性的平衡

 

2  求解方法

2.1  DLT 法

2.1.1  轉化為 Ax=0

    令 $P = K\;[R\;\, t]$,$K$ 為相機內參矩陣,則 PnP 問題可簡化為:已知 n 組 3d-2d 對應點,求解 $P_{3\times4}$  

    DLT (Direct Linear Transformation,直接線性變換),便是直接利用這 n 組對應點,構建線性方程組來求解

    $\quad s \begin{bmatrix} u \\ v \\ 1 \end{bmatrix}  =  \begin{bmatrix} p_{11} & p_{12} & p_{13} & p_{14} \\ p_{21} & p_{22} & p_{23} & p_{23} \\ p_{31} & p_{32} & p_{33} & p_{33} \end{bmatrix}  \begin{bmatrix} X_w \\ Y_w \\ Z_w\\ 1 \end{bmatrix} $

    簡化符號 $X_w, Y_w, Z_w$ 為 $X, Y, Z$,展開得: 

    $\quad \begin{equation}  \begin{cases}  su= p_{11}X + p_{12}Y + p_{13}Z + p_{14}\\ \\sv=p_{21}X + p_{22}Y + p_{23}Z + p_{24} \\ \\s\;=p_{31}X + p_{32}Y + p_{33}Z + p_{34}  \end{cases}\end{equation} \;\bm{=>} \; \begin{cases}  Xp_{11} + Yp_{12} + Zp_{13} + p_{14} - uXp_{31} - uYp_{32} - uZp_{33} - up_{34} = 0 \\ \\ Xp_{21} + Yp_{22} + Zp_{23} + p_{24} - vXp_{31} - vYp_{32} - vZp_{33} - vp_{34} = 0 \end{cases}$   

    未知數有 11 個 ($p_{34}$可約掉),則至少需要 6 組對應點,寫成矩陣形式如下:

    $\quad \begin{bmatrix} X_1&Y_1&Z_1&1 &0&0&0&0&-u_1X_1&-u_1Y_1&-u_1Z_1&-u_1 \\ 0&0&0&0& X_1&Y_1&Z_1&1&-v_1X_1&-v_1Y_1&-v_1Z_1&-v_1 \\ \vdots &\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots \\ \vdots &\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots&\vdots\\ X_n&Y_n&Z_n&1 &0&0&0&0&-u_nX_n&-u_nY_1&-u_nZ_n&-u_n \\ 0&0&0&0& X_n&Y_n&Z_n&1&-v_nX_n&-v_nY_n&-v_nZ_n&-v_n\end{bmatrix} \begin{bmatrix}p_{11}\\p_{12}\\p_{13}\\p_{14}\\ \vdots\\p_{32}\\p_{33}\\p_{34}\end{bmatrix}=\begin{bmatrix}0\\ \vdots\\ \vdots\\0\end{bmatrix}$

    因此,求解 $P_{3\times4}$ 便轉化成了 $Ax=0$ 的問題  

2.1.2  SVD 求 R t

    給定相機內參矩陣,則有  $K \begin{bmatrix} R & t \end{bmatrix} = \lambda \begin{bmatrix} p_1 & p_2 &p_3&p_4 \end{bmatrix}$

    考慮 $\lambda$ 符號無關,得  $\lambda R = K^{-1}\begin{bmatrix} p_1 & p_2&p_3 \end{bmatrix}$

    SVD 分解  $K^{-1}\begin{bmatrix} p_1&p_2&p_3\end{bmatrix}=\bm{U}\begin{bmatrix}d_{11} && \\ &d_{22}&\\&&&d_{33}\end{bmatrix} \bm{V^T}$   

    $\quad=> \lambda \approx d_{11}$  和  $\begin{cases}\bm{R=UV^T} \\ \bm{t=\dfrac{K^{-1}p_4}{d_{11}}} \end{cases}$

2.2  P3P 法

    當 n=3 時,PnP 即為 P3P,它有 4 個可能的解,求解方法是 余弦定理 + 向量點積

2.2.1  余弦定理

    根據投影幾何的消隱點和消隱線,構建 3d-2d 之間的幾何關系,如下:

      

    根據余弦定理,則有

    $\begin{cases} d_1^2 + d_2^2 - 2d_1d_2\cos\theta_{12} = p_{12}^2  \\ \\ d_2^2 + d_3^2 - 2d_2d_3\cos\theta_{23} = p_{23}^2 \\ \\ d_3^2 + d_1^2 + 2d_3d_2\cos\theta_23 = p_{31}^2 \end{cases}$

    只有 $d_1,\, d_2,\,d_3$ 是未知數,求解方程組即可

    其中,有個關鍵的隱含點:給定相機內參,以及 3d-2d 的投影關系,則消隱線之間的夾角 $\theta_{12}\; \theta_{23}\; \theta_{31}$ 是可計算得出的 

2.2.2  向量點積

    相機坐標系中,原點即為消隱點,原點到 3d-2d 的連線即為消隱線,如圖所示:

                      

    如果知道 3d點 投影到像平面的 2d點,在相機坐標系中的坐標 $U_1,\,U_2,\,U_3$,則 $\cos\theta_{23}= \dfrac {\overrightarrow{OU_2}\cdot \overrightarrow{OU_3}} {||\overrightarrow{OU_2}||\;||\overrightarrow{OU_3}||} $        

    具體到運算,可視為 世界坐標系 {W} 和 相機坐標系 {C} 重合,且 $Z = f$,則有

    $\quad \begin{bmatrix} R & t \end{bmatrix} = \begin{bmatrix} 1 &0&0&0 \\ 0&1&0&0 \\ 0&0&1&0 \end{bmatrix} =>$ $\; s \begin{bmatrix} u \\ v \\ 1 \end{bmatrix}  =  \begin{bmatrix} f_x & 0 & c_x \\ 0 & f_y & c_y \\ 0 & 0 & 1 \end{bmatrix}   \begin{bmatrix} X_c \\ Y_c \\ Z_c \end{bmatrix} $

    $K^{-1}$ 可用增廣矩陣求得,且 $Z_c = f$,則有

    $\quad \begin{bmatrix} X_c \\Y_c\\f \end{bmatrix} = s K^{-1}\begin{bmatrix} u\\v\\1 \end{bmatrix}$

    記 $\vec u = \begin{bmatrix} X_c \\ Y_c \\ Z_c \end{bmatrix}$,則 $\cos\theta_{12}=\dfrac{(K^{-1}\vec{u_1})^T (K^{-1}\vec{u_2})}{||K^{-1}\vec{u_1}||\,||K^{-1}\vec{u_2}||}$,以此類推 $\cos\theta_{23}$ 和 $\cos\theta_{31}$

  

3  OpenCV 函式

    OpenCV 中解 PnP 的方法有 9 種,目前實作了 7 種,還有 2 種未實作,對應論文如下:

     -  SOLVEPNP_P3P               Complete Solution Classification for the Perspective-Three-Point Problem

     -  SOLVEPNP_AP3P             An Efficient Algebraic Solution to the Perspective-Three-Point Problem

     -  SOLVEPNP_ITERATIVE             基于 L-M 最優化方法,求解重投影誤差最小的位姿

     -  SOLVEPNP_EPNP                           EPnP: An Accurate O(n) Solution to the PnP Problem

     -  SOLVEPNP_SQPNP                         A Consistently Fast and Globally Optimal Solution to the Perspective-n-Point Problem

     -  SOLVEPNP_IPPE                                        Infinitesimal Plane-based Pose Estimation    輸入的 3D 點需要共面且 n ≥ 4

     -  SOLVEPNP_IPPE_SQUARE                         SOLVEPNP_IPPE 的一種特殊情況,要求輸入 4 個共面點的坐標,并且按照特定的順序排列

     -  SOLVEPNP_DLS (未實作)                   A Direct Least-Squares (DLS) Method for PnP     實際呼叫 SOLVEPNP_EPNP

     -  SOLVEPNP_UPLP (未實作)                 Exhaustive Linearization for Robust Camera Pose and Focal Length Estimation    實際呼叫 SOLVEPNP_EPNP

3.1  solveP3P()

    solveP3P() 的輸入是 3 組 3d-2d 對應點,定義如下:

    // P3P has up to 4 solutions, and the solutions are sorted by reprojection errors(lowest to highest).
    int solveP3P (
        InputArray     objectPoints,     // object points, 3x3 1-channel or 1x3/3x1 3-channel. vector<Point3f> can be also passed
        InputArray      imagePoints,     // corresponding image points, 3x2 1-channel or 1x3/3x1 2-channel. vector<Point2f> can be also passed
        InputArray     cameraMatrix,     // camera intrinsic matrix
        InputArray       distCoeffs,     // distortion coefficients.If NULL/empty, the zero distortion coefficients are assumed.
        OutputArrayOfArrays   rvecs,     // rotation vectors
        OutputArrayOfArrays   tvecs,     // translation vectors
        int                   flags      // solving method
    );   

3.2  solvePnP() 和 solvePnPGeneric() 

    solvePnP() 實際上呼叫的是 solvePnPGeneric(),內部實作如下:

bool solvePnP(InputArray opoints, InputArray ipoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess, int flags)
{
    CV_INSTRUMENT_REGION();

    vector<Mat> rvecs, tvecs;
    int solutions = solvePnPGeneric(opoints, ipoints, cameraMatrix, distCoeffs, rvecs, tvecs, useExtrinsicGuess, (SolvePnPMethod)flags, rvec, tvec);

    if (solutions > 0)
    {
        int rdepth = rvec.empty() ? CV_64F : rvec.depth();
        int tdepth = tvec.empty() ? CV_64F : tvec.depth();
        rvecs[0].convertTo(rvec, rdepth);
        tvecs[0].convertTo(tvec, tdepth);
    }

    return solutions > 0;
}  

    solvePnPGeneric() 除了求解相機位姿外,還可得到重投影誤差,其定義如下:

    bool solvePnPGeneric (
        InputArray         objectPoints,    // object points, Nx3 1-channel or 1xN/Nx1 3-channel, N is the number of points. vector<Point3d> can be also passed
        InputArray          imagePoints,    // corresponding image points, Nx2 1-channel or 1xN/Nx1 2-channel, N is the number of points. vector<Point2d> can be also passed
        InputArray         cameraMatrix,    // camera intrinsic matrix
        InputArray           distCoeffs,    // distortion coefficients
        OutputArrayOfArrays        rvec,    // rotation vector
        OutputArrayOfArrays        tvec,    // translation vector
        bool  useExtrinsicGuess = false,    // used for SOLVEPNP_ITERATIVE. If true, use the provided rvec and tvec as initial approximations, and further optimize them.
        SolvePnPMethod  flags = SOLVEPNP_ITERATIVE, // solving method
        InputArray               rvec = noArray(),  // initial rotation vector when using SOLVEPNP_ITERATIVE and useExtrinsicGuess is set to true
        InputArray               tvec = noArray(),  // initial translation vector when using SOLVEPNP_ITERATIVE and useExtrinsicGuess is set to true
        OutputArray reprojectionError = noArray()   // optional vector of reprojection error, that is the RMS error
    );   

3.3  solvePnPRansac()

    solvePnP() 的一個缺點是魯棒性不強,對例外點敏感,這在相機標定中問題不大,因為標定板的圖案已知,并且特征提取較為穩定

    然而,當相機拍攝實際物體時,因為特征難以穩定提取,會出現一些例外點,導致位姿估計的不準,因此,需要一種處理例外點的方法

    RANSAC 便是一種高效剔除例外點的方法,對應 solvePnPRansac(),它是一個多載函式,共有 2 種引數形式,第 1 種形式如下:

    bool solvePnPRansac (
        InputArray         objectPoints,    // object points, Nx3 1-channel or 1xN/Nx1 3-channel, N is the number of points. vector<Point3d> can be also passed
        InputArray          imagePoints,    // corresponding image points, Nx2 1-channel or 1xN/Nx1 2-channel, N is the number of points. vector<Point2d> can be also passed
        InputArray         cameraMatrix,    // camera intrinsic matrix
        InputArray           distCoeffs,    // distortion coefficients
        OutputArray                rvec,    // rotation vector
        OutputArray                tvec,    // translation vector
        bool  useExtrinsicGuess = false,    // used for SOLVEPNP_ITERATIVE. If true, use the provided rvec and tvec as initial approximations, and further optimize them.
        int       iterationsCount = 100,    // number of iterations
        float   reprojectionError = 8.0,    // inlier threshold value. It is the maximum allowed distance between the observed and computed point projections to consider it an inlier
        double        confidence = 0.99,    // the probability that the algorithm produces a useful result
        OutputArray inliers = noArray(),    // output vector that contains indices of inliers in objectPoints and imagePoints
        int  flags = SOLVEPNP_ITERATIVE     // solving method
    );  

 3.4  solvePnPRefineLM() 和 solvePnPRefineVVS()

    OpenCV 中還有 2 個位姿細化函式:通過迭代不斷減小重投影誤差,從而求得最佳位姿,solvePnPRefineLM() 使用 L-M 演算法,solvePnPRefineVVS() 則用虛擬視覺伺服 (Virtual Visual Servoing)

    solvePnPRefineLM() 的定義如下:

  void solvePnPRefineLM (
      InputArray      objectPoints,  // object points, Nx3 1-channel or 1xN/Nx1 3-channel, N is the number of points
      InputArray       imagePoints,  // corresponding image points, Nx2 1-channel or 1xN/Nx1 2-channel
      InputArray      cameraMatrix,  // camera intrinsic matrix
      InputArray        distCoeffs,  // distortion coefficients
      InputOutputArray      rvec,      // input/output rotation vector
      InputOutputArray      tvec,      // input/output translation vector      
      TermCriteria  criteria = TermCriteria(TermCriteria::EPS+TermCriteria::COUNT, 20, FLT_EPSILON) // Criteria when to stop the LM iterative algorithm
);   

 

4  應用實體

4.1  位姿估計 (靜態+標定板) 

    當手持標定板旋轉不同角度時,利用相機內參 + solvePnP(),便可求出相機相對標定板的位姿

#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/calib3d.hpp"

using namespace std;
using namespace cv;

Size kPatternSize = Size(9, 6);
float kSquareSize = 0.025;
// camera intrinsic parameters and distortion coefficient
const Mat cameraMatrix = (Mat_<double>(3, 3) << 5.3591573396163199e+02, 0.0, 3.4228315473308373e+02,
                                                0.0, 5.3591573396163199e+02, 2.3557082909788173e+02,
                                                0.0, 0.0, 1.0);
const Mat distCoeffs = (Mat_<double>(5, 1) << -2.6637260909660682e-01, -3.8588898922304653e-02, 1.7831947042852964e-03,
                                              -2.8122100441115472e-04, 2.3839153080878486e-01);

int main()
{
    // 1) read image
    Mat src = https://www.cnblogs.com/xinxue/archive/2021/09/08/imread("left07.jpg");
    if (src.empty())
        return -1;
    // prepare for subpixel corner
    Mat src_gray;
    cvtColor(src, src_gray, COLOR_BGR2GRAY);

    // 2) find chessboard corners and subpixel refining
    vector<Point2f> corners;
    bool patternfound = findChessboardCorners(src, kPatternSize, corners);
    if (patternfound) {
        cornerSubPix(src_gray, corners, Size(11, 11), Size(-1, -1), TermCriteria(TermCriteria::EPS + TermCriteria::MAX_ITER, 30, 0.1));
    }
    else {
        return -1;
    }

    // 3) object coordinates
    vector<Point3f> objectPoints;
    for (int i = 0; i < kPatternSize.height; i++)
    {
        for (int j = 0; j < kPatternSize.width; j++)
        {
            objectPoints.push_back(Point3f(float(j * kSquareSize), float(i * kSquareSize), 0));
        }
    }

    // 4) Rotation and Translation vectors
    Mat rvec, tvec;
    solvePnP(objectPoints, corners, cameraMatrix, distCoeffs, rvec, tvec);

    // 5) project estimated pose on the image 
    drawFrameAxes(src, cameraMatrix, distCoeffs, rvec, tvec, 2*kSquareSize);
    imshow("Pose estimation", src);
    waitKey();
}  

    當標定板旋轉不同角度時,相機所對應的位姿如下:

                   

4.2  位姿估計 (實時+任意物)

    OpenCV 中有一個實時目標跟蹤例程,位于 "opencv\samples\cpp\tutorial_code\calib3d\real_time_pose_estimation" 中,實作步驟如下:

    1)  讀取目標的三維模型和網格 -> 2)  獲取視頻流 -> 3)  ORB 特征檢測 -> 4) 3d-2d 特征匹配 -> 5)  相機位姿估計 -> 6)  卡爾曼濾波

    例程中設計了一個 PnPProblem 類來實作位姿估計,其中 2 個重要的函式 estimatePoseRANSAC() 和 backproject3DPoint() 定義如下:

    class PnPProblem
    {
    public:
        explicit PnPProblem(const double param[]);  // custom constructor
        virtual ~PnPProblem();

        cv::Point2f backproject3DPoint(const cv::Point3f& point3d);

        void estimatePoseRANSAC(const std::vector<cv::Point3f>& list_points3d, const std::vector<cv::Point2f>& list_points2d,
                                int flags, cv::Mat& inliers, int iterationsCount, float reprojectionError, double confidence);
        // ...
    }

    // Custom constructor given the intrinsic camera parameters
    PnPProblem::PnPProblem(const double params[])
    {
        // intrinsic camera parameters
        _A_matrix = cv::Mat::zeros(3, 3, CV_64FC1);   
        _A_matrix.at<double>(0, 0) = params[0];       //  [ fx   0  cx ]
        _A_matrix.at<double>(1, 1) = params[1];       //  [  0  fy  cy ]
        _A_matrix.at<double>(0, 2) = params[2];       //  [  0   0   1 ]
        _A_matrix.at<double>(1, 2) = params[3];
        _A_matrix.at<double>(2, 2) = 1;
        // rotation matrix, translation matrix, rotation-translation matrix
        _R_matrix = cv::Mat::zeros(3, 3, CV_64FC1);
        _t_matrix = cv::Mat::zeros(3, 1, CV_64FC1);
        _P_matrix = cv::Mat::zeros(3, 4, CV_64FC1);
    }

    // Estimate the pose given a list of 2D/3D correspondences with RANSAC and the method to use
    void PnPProblem::estimatePoseRANSAC (
        const std::vector<Point3f>& list_points3d,        // list with model 3D coordinates
        const std::vector<Point2f>& list_points2d,        // list with scene 2D coordinates
        int flags, Mat& inliers, int iterationsCount,     // PnP method; inliers container
        float reprojectionError, float confidence)        // RANSAC parameters
    {
        // distortion coefficients, rotation vector and translation vector 
        Mat distCoeffs = Mat::zeros(4, 1, CV_64FC1);
        Mat rvec = Mat::zeros(3, 1, CV_64FC1);          
        Mat tvec = Mat::zeros(3, 1, CV_64FC1);   
        // no initial approximations
        bool useExtrinsicGuess = false;           

        // PnP + RANSAC
        solvePnPRansac(list_points3d, list_points2d, _A_matrix, distCoeffs, rvec, tvec, useExtrinsicGuess, iterationsCount, reprojectionError, confidence, inliers, flags);
   
        // converts Rotation Vector to Matrix
        Rodrigues(rvec, _R_matrix);                   
        _t_matrix = tvec;                            // set translation matrix
        this->set_P_matrix(_R_matrix, _t_matrix);    // set rotation-translation matrix
    }

    // Backproject a 3D point to 2D using the estimated pose parameters
    cv::Point2f PnPProblem::backproject3DPoint(const cv::Point3f& point3d)
    {
        // 3D point vector [x y z 1]'
        cv::Mat point3d_vec = cv::Mat(4, 1, CV_64FC1);
        point3d_vec.at<double>(0) = point3d.x;
        point3d_vec.at<double>(1) = point3d.y;
        point3d_vec.at<double>(2) = point3d.z;
        point3d_vec.at<double>(3) = 1;

        // 2D point vector [u v 1]'
        cv::Mat point2d_vec = cv::Mat(4, 1, CV_64FC1);
        point2d_vec = _A_matrix * _P_matrix * point3d_vec;

        // Normalization of [u v]'
        cv::Point2f point2d;
        point2d.x = (float)(point2d_vec.at<double>(0) / point2d_vec.at<double>(2));
        point2d.y = (float)(point2d_vec.at<double>(1) / point2d_vec.at<double>(2));

        return point2d;
    }

    PnPProblem 類的呼叫如下:實體化 -> estimatePoseRansac() 估計位姿 -> backproject3DPoint() 畫出位姿

// Intrinsic camera parameters: UVC WEBCAM
double f = 55;                     // focal length in mm
double sx = 22.3, sy = 14.9;       // sensor size
double width = 640, height = 480;  // image size
double params_WEBCAM[] = { width * f / sx,   // fx
                           height * f / sy,  // fy
                           width / 2,      // cx
                           height / 2 };   // cy
// instantiate PnPProblem class
PnPProblem pnp_detection(params_WEBCAM);

// RANSAC parameters
int iterCount = 500;        // number of Ransac iterations.
float reprojectionError = 2.0;    // maximum allowed distance to consider it an inlier.
float confidence = 0.95;          // RANSAC successful confidence.

// OpenCV requires solvePnPRANSAC to minimally have 4 set of points
if (good_matches.size() >= 4)
{
    // -- Step 3: Estimate the pose using RANSAC approach
    pnp_detection.estimatePoseRANSAC(list_points3d_model_match, list_points2d_scene_match,
        pnpMethod, inliers_idx, iterCount, reprojectionError, confidence);

    // ... ..
}

// ... ... 

float fp = 5;
vector<Point2f> pose2d;
pose2d.push_back(pnp_detect_est.backproject3DPoint(Point3f(0, 0, 0))); // axis center
pose2d.push_back(pnp_detect_est.backproject3DPoint(Point3f(fp, 0, 0))); // axis x
pose2d.push_back(pnp_detect_est.backproject3DPoint(Point3f(0, fp, 0))); // axis y
pose2d.push_back(pnp_detect_est.backproject3DPoint(Point3f(0, 0, fp))); // axis z

draw3DCoordinateAxes(frame_vis, pose2d); // draw axes

// ... ...

  實時目標跟蹤的效果如下:

            

    

 

參考資料

  OpenCV-Python Tutorials / Camera Calibration and 3D Reconstruction / Pose Estimation

  OpenCV Tutorials / Camera calibration and 3D reconstruction (calib3d module) / Real time pose estimation of a textured object

  一種改進的 PnP 問題求解演算法研究[J]

  Perspective-n-Point, Hyun Soo Park

 

原文鏈接: http://www.cnblogs.com/xinxue/

專注于機器視覺、OpenCV、C++ 編程

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/298518.html

標籤:其他

上一篇:云原生愛好者周刊:開源替代品開始圍剿 Docker Desktop

下一篇:十大云原生最佳用戶案例實踐,你最喜歡哪篇

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 網閘典型架構簡述

    網閘架構一般分為兩種:三主機的三系統架構網閘和雙主機的2+1架構網閘。 三主機架構分別為內端機、外端機和仲裁機。三機無論從軟體和硬體上均各自獨立。首先從硬體上來看,三機都用各自獨立的主板、記憶體及存盤設備。從軟體上來看,三機有各自獨立的作業系統。這樣能達到完全的三機獨立。對于“2+1”系統,“2”分為 ......

    uj5u.com 2020-09-10 02:00:44 more
  • 如何從xshell上傳檔案到centos linux虛擬機里

    如何從xshell上傳檔案到centos linux虛擬機里及:虛擬機CentOs下執行 yum -y install lrzsz命令,出現錯誤:鏡像無法找到軟體包 前言 一、安裝lrzsz步驟 二、上傳檔案 三、遇到的問題及解決方案 總結 前言 提示:其實很簡單,往虛擬機上安裝一個上傳檔案的工具 ......

    uj5u.com 2020-09-10 02:00:47 more
  • 一、SQLMAP入門

    一、SQLMAP入門 1、判斷是否存在注入 sqlmap.py -u 網址/id=1 id=1不可缺少。當注入點后面的引數大于兩個時。需要加雙引號, sqlmap.py -u "網址/id=1&uid=1" 2、判斷文本中的請求是否存在注入 從文本中加載http請求,SQLMAP可以從一個文本檔案中 ......

    uj5u.com 2020-09-10 02:00:50 more
  • Metasploit 簡單使用教程

    metasploit 簡單使用教程 浩先生, 2020-08-28 16:18:25 分類專欄: kail 網路安全 linux 文章標簽: linux資訊安全 編輯 著作權 metasploit 使用教程 前言 一、Metasploit是什么? 二、準備作業 三、具體步驟 前言 Msfconsole ......

    uj5u.com 2020-09-10 02:00:53 more
  • 游戲逆向之驅動層與用戶層通訊

    驅動層代碼: #pragma once #include <ntifs.h> #define add_code CTL_CODE(FILE_DEVICE_UNKNOWN,0x800,METHOD_BUFFERED,FILE_ANY_ACCESS) /* 更多游戲逆向視頻www.yxfzedu.com ......

    uj5u.com 2020-09-10 02:00:56 more
  • 北斗電力時鐘(北斗授時服務器)讓網路資料更精準

    北斗電力時鐘(北斗授時服務器)讓網路資料更精準 北斗電力時鐘(北斗授時服務器)讓網路資料更精準 京準電子科技官微——ahjzsz 近幾年,資訊技術的得了快速發展,互聯網在逐漸普及,其在人們生活和生產中都得到了廣泛應用,并且取得了不錯的應用效果。計算機網路資訊在電力系統中的應用,一方面使電力系統的運行 ......

    uj5u.com 2020-09-10 02:01:03 more
  • 【CTF】CTFHub 技能樹 彩蛋 writeup

    ?碎碎念 CTFHub:https://www.ctfhub.com/ 筆者入門CTF時時剛開始刷的是bugku的舊平臺,后來才有了CTFHub。 感覺不論是網頁UI設計,還是題目質量,賽事跟蹤,工具軟體都做得很不錯。 而且因為獨到的金幣制度的確讓人有一種想去刷題賺金幣的感覺。 個人還是非常喜歡這個 ......

    uj5u.com 2020-09-10 02:04:05 more
  • 02windows基礎操作

    我學到了一下幾點 Windows系統目錄結構與滲透的作用 常見Windows的服務詳解 Windows埠詳解 常用的Windows注冊表詳解 hacker DOS命令詳解(net user / type /md /rd/ dir /cd /net use copy、批處理 等) 利用dos命令制作 ......

    uj5u.com 2020-09-10 02:04:18 more
  • 03.Linux基礎操作

    我學到了以下幾點 01Linux系統介紹02系統安裝,密碼啊破解03Linux常用命令04LAMP 01LINUX windows: win03 8 12 16 19 配置不繁瑣 Linux:redhat,centos(紅帽社區版),Ubuntu server,suse unix:金融機構,證券,銀 ......

    uj5u.com 2020-09-10 02:04:30 more
  • 05HTML

    01HTML介紹 02頭部標簽講解03基礎標簽講解04表單標簽講解 HTML前段語言 js1.了解代碼2.根據代碼 懂得挖掘漏洞 (POST注入/XSS漏洞上傳)3.黑帽seo 白帽seo 客戶網站被黑帽植入劫持代碼如何處理4.熟悉html表單 <html><head><title>TDK標題,描述 ......

    uj5u.com 2020-09-10 02:04:36 more
最新发布
  • 2023年最新微信小程式抓包教程

    01 開門見山 隔一個月發一篇文章,不過分。 首先回顧一下《微信系結手機號資料庫被脫庫事件》,我也是第一時間得知了這個訊息,然后跟蹤了整件事情的經過。下面是這起事件的相關截圖以及近日流出的一萬條資料樣本: 個人認為這件事也沒什么,還不如關注一下之前45億快遞資料查詢渠道疑似在近日復活的訊息。 訊息是 ......

    uj5u.com 2023-04-20 08:48:24 more
  • web3 產品介紹:metamask 錢包 使用最多的瀏覽器插件錢包

    Metamask錢包是一種基于區塊鏈技術的數字貨幣錢包,它允許用戶在安全、便捷的環境下管理自己的加密資產。Metamask錢包是以太坊生態系統中最流行的錢包之一,它具有易于使用、安全性高和功能強大等優點。 本文將詳細介紹Metamask錢包的功能和使用方法。 一、 Metamask錢包的功能 數字資 ......

    uj5u.com 2023-04-20 08:47:46 more
  • vulnhub_Earth

    前言 靶機地址->>>vulnhub_Earth 攻擊機ip:192.168.20.121 靶機ip:192.168.20.122 參考文章 https://www.cnblogs.com/Jing-X/archive/2022/04/03/16097695.html https://www.cnb ......

    uj5u.com 2023-04-20 07:46:20 more
  • 從4k到42k,軟體測驗工程師的漲薪史,給我看哭了

    清明節一過,盲猜大家已經無心上班,在數著日子準備過五一,但一想到銀行卡里的余額……瞬間心情就不美麗了。最近,2023年高校畢業生就業調查顯示,本科畢業月平均起薪為5825元。調查一出,便有很多同學表示自己又被平均了。看著這一資料,不免讓人想到前不久中國青年報的一項調查:近六成大學生認為畢業10年內會 ......

    uj5u.com 2023-04-20 07:44:00 more
  • 最新版本 Stable Diffusion 開源 AI 繪畫工具之中文自動提詞篇

    🎈 標簽生成器 由于輸入正向提示詞 prompt 和反向提示詞 negative prompt 都是使用英文,所以對學習母語的我們非常不友好 使用網址:https://tinygeeker.github.io/p/ai-prompt-generator 這個網址是為了讓大家在使用 AI 繪畫的時候 ......

    uj5u.com 2023-04-20 07:43:36 more
  • 漫談前端自動化測驗演進之路及測驗工具分析

    隨著前端技術的不斷發展和應用程式的日益復雜,前端自動化測驗也在不斷演進。隨著 Web 應用程式變得越來越復雜,自動化測驗的需求也越來越高。如今,自動化測驗已經成為 Web 應用程式開發程序中不可或缺的一部分,它們可以幫助開發人員更快地發現和修復錯誤,提高應用程式的性能和可靠性。 ......

    uj5u.com 2023-04-20 07:43:16 more
  • CANN開發實踐:4個DVPP記憶體問題的典型案例解讀

    摘要:由于DVPP媒體資料處理功能對存放輸入、輸出資料的記憶體有更高的要求(例如,記憶體首地址128位元組對齊),因此需呼叫專用的記憶體申請介面,那么本期就分享幾個關于DVPP記憶體問題的典型案例,并給出原因分析及解決方法。 本文分享自華為云社區《FAQ_DVPP記憶體問題案例》,作者:昇騰CANN。 DVPP ......

    uj5u.com 2023-04-20 07:43:03 more
  • msf學習

    msf學習 以kali自帶的msf為例 一、msf核心模塊與功能 msf模塊都放在/usr/share/metasploit-framework/modules目錄下 1、auxiliary 輔助模塊,輔助滲透(埠掃描、登錄密碼爆破、漏洞驗證等) 2、encoders 編碼器模塊,主要包含各種編碼 ......

    uj5u.com 2023-04-20 07:42:59 more
  • Halcon軟體安裝與界面簡介

    1. 下載Halcon17版本到到本地 2. 雙擊安裝包后 3. 步驟如下 1.2 Halcon軟體安裝 界面分為四大塊 1. Halcon的五個助手 1) 影像采集助手:與相機連接,設定相機引數,采集影像 2) 標定助手:九點標定或是其它的標定,生成標定檔案及內參外參,可以將像素單位轉換為長度單位 ......

    uj5u.com 2023-04-20 07:42:17 more
  • 在MacOS下使用Unity3D開發游戲

    第一次發博客,先發一下我的游戲開發環境吧。 去年2月份買了一臺MacBookPro2021 M1pro(以下簡稱mbp),這一年來一直在用mbp開發游戲。我大致分享一下我的開發工具以及使用體驗。 1、Unity 官網鏈接: https://unity.cn/releases 我一般使用的Apple ......

    uj5u.com 2023-04-20 07:40:19 more