- Mastering OpenCV 4
- Roy Shilkrot David Millán Escrivá
- 248字
- 2021-07-02 14:47:39
Speed comparison of Cartoonifier on desktop versus embedded
You will notice that the code runs much slower on Raspberry Pi than on your desktop! By far the two easiest ways to run it faster are to use a faster device or use a smaller camera resolution. The following table shows some frame rates, frames per seconds (FPS), for both the sketch and paint modes of Cartoonifier on a desktop, Raspberry Pi 1, Raspberry Pi 2, Raspberry Pi 3, and Jetson TK1. Note that the speeds don't have any custom optimizations and only run on a single CPU core, and the timings include the time for rendering images to the screen. The USB webcam used is the fast PS3 Eye webcam running at 640 x 480 since it is the fastest low-cost webcam on the market.
It's worth mentioning that Cartoonifier is only using a single CPU core, but all the devices listed have four CPU cores except for Raspberry Pi 1, which has a single core, and many x86 computers have hyperthreading to give roughly eight CPU cores. So, if you wrote your code to efficiently make use of multiple CPU cores (or GPU), the speeds might be 1.5 to 3 times faster than the single-threaded figures shown:

Notice that Raspberry Pi is extremely slow at running the code, especially the paint mode, so we will try simply changing the camera and the resolution of the camera.
- Android Wearable Programming
- Spring 5企業(yè)級(jí)開(kāi)發(fā)實(shí)戰(zhàn)
- Visual C++程序設(shè)計(jì)學(xué)習(xí)筆記
- 面向STEM的Scratch創(chuàng)新課程
- Drupal 8 Module Development
- 批調(diào)度與網(wǎng)絡(luò)問(wèn)題的組合算法
- C#程序設(shè)計(jì)教程(第3版)
- Quantum Computing and Blockchain in Business
- .NET 4.0面向?qū)ο缶幊搪劊簯?yīng)用篇
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- JavaEE架構(gòu)與程序設(shè)計(jì)
- Clojure for Finance
- Python人工智能項(xiàng)目實(shí)戰(zhàn)
- Java網(wǎng)絡(luò)編程實(shí)用精解
- Perl 6 Deep Dive