在 Latex 中編寫偽代碼以進行安全分析。我寫的 foreach 語句給了我錯誤的未定義控制序列。請幫我

在 Latex 中編寫偽代碼以進行安全分析。我寫的 foreach 語句給了我錯誤的未定義控制序列。請幫我
\documentclass[10pt]{article}
\usepackage{fullpage}
\usepackage{times}
\usepackage{fancyhdr,graphicx,amsmath,amssymb}
\usepackage[ruled,vlined]{algorithm2e}
%\usepackage{tikz}
%\include{pythonlisting}

\begin{document}

\begin{algorithm}[h]
\caption{{\bf Context-aware multi-stage health and safety surveillance} \label{Algorithm}}
\KwIn{Path of videos $V$, All stage detection models $\Omega$, stage detector $\phi_o$}
\BlankLine
Load the video ($v$)\;
\BlankLine
\foreach video(i) in videos:

    
\KwOut{List of detected objects $\Lambda_o$, Site occupancy matrix $\sigma_o$, Collision matrix $\mu_c$}
\end{algorithm}

\end{document}

相關內容