如何加快阅读mp4帧?

时间:2020-02-26 17:31:11

标签: python multithreading performance multiprocessing cv2

我有一个脚本,可以使用cv2打开.mp4文件。我大约有1500帧,我想对它们全部做一些工作。我认为代码中最慢的部分是帧的实际打开,而不是用它们完成的任何计算。有什么办法可以加快速度吗?我研究了多线程和多处理,但是我没有运气。

              <React.Fragment>
                {error ? <p>{error.message}</p> : null}
                {!isLoading ? (
                <table class="table table-bordered table-secondary" id="tableBorder">
                <thead style={{backgroundColor:"#3787d8",color:"white"}}>
                  <tr>
                    <th>Name</th>
                    <th>Age</th>
                    <th>Email</th>
                  </tr>
                </thead>
                {
                    users.map(user => {
                    const { name, owner } = user;
                    return (
                        <td>{FullName}</td>  
                    );
                    })
                }
                </table>
            ) : (
              <h3>Loading...</h3>
            )}
            </React.Fragment>

0 个答案:

没有答案
相关问题