- Mastering OpenCV 4
- Roy Shilkrot David Millán Escrivá
- 166字
- 2021-07-02 14:47:38
Hiding the mouse cursor
You might notice the mouse cursor is shown on top of your window even though you don't want to use a mouse in your embedded system. To hide the mouse cursor, you can use the xdotool command to move it to the bottom-right corner pixel, so it's not noticeable, but is still available if you want to occasionally plug in your mouse to debug the device. Install xdotool and create a short Linux script to run it with Cartoonifier:
sudo apt-get install -y xdotool
cd ~/Cartoonifier/build
After installing xdotool, now is the time to create the script, create a new file with your favorite editor with the name runCartoonifier.sh and the following content:
#!/bin/sh
# Move the mouse cursor to the screen's bottom-right pixel.
xdotoolmousemove 3000 3000
# Run Cartoonifier with any arguments given.
/home/pi/Cartoonifier/build/Cartoonifier "$@"
Finally, make your script executable:
chmod +x runCartoonifier.sh
Try running your script to make sure it works:
DISPLAY=:0 ./runCartoonifier.sh
推薦閱讀
- PWA入門與實踐
- Angular UI Development with PrimeNG
- JavaScript+jQuery開發(fā)實戰(zhàn)
- MariaDB High Performance
- Mastering OpenCV 4
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- Learning Laravel's Eloquent
- Node.js:來一打 C++ 擴展
- Mastering Akka
- 3ds Max印象 電視欄目包裝動畫與特效制作
- NGUI for Unity
- Arduino機器人系統(tǒng)設(shè)計及開發(fā)
- Mastering VMware Horizon 7(Second Edition)
- Python高性能編程(第2版)
- 深入大型數(shù)據(jù)集:并行與分布化Python代碼