EasyManua.ls Logo

SunFounder PiCar-X Kit - Bull Fight

Default Icon
181 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder PiCar-X Kit
(continued from previous page)
sleep(0.1)
if __name__ == "__main__":
main()
How it works?
Functions related to recording include the following:
Vilib.rec_video_run(video_name) : Started the thread to record the video. video_name is the name of
the video file, it should be a string.
Vilib.rec_video_start(): Start or continue video recording.
Vilib.rec_video_pause(): Pause recording.
Vilib.rec_video_stop(): Stop recording.
Vilib.rec_video_set["path"] = f"/home/{username}/Videos/" sets the storage location of video files.
Note: Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook!
Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
Ready to explore and create with us? Click [] and join today!
4.12 10. Bull Fight
Make PiCar-X an angry bull! Use its camera to track and rush the red cloth!
Run the Code
cd ~/picar-x/example
sudo python3 10.bull_fight.py
View the Image
After the code runs, the terminal will display the following prompt:
No desktop !
* Serving Flask app "vilib.vilib" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:9000/ (Press CTRL+C to quit)
4.12. 10. Bull Fight 77

Table of Contents

Related product manuals