官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 华坪县| 将乐县| 乌鲁木齐县| 临高县| 瑞丽市| 图们市| 方正县| 合川市| 通州区| 龙里县| 岳西县| 镶黄旗| 仁怀市| 当涂县| 敦煌市| 郎溪县| 耿马| 陈巴尔虎旗| 鲜城| 监利县| 分宜县| 元朗区| 松原市| 三门峡市| 拉孜县| 视频| 淮北市| 长丰县| 息烽县| 高要市| 蕉岭县| 瑞昌市| 鄂伦春自治旗| 南川市| 嘉峪关市| 和龙市| 沈阳市| 玉门市| 宁化县| 吐鲁番市| 黑水县|