takepic():Ĭontrolwiz said:Raspberry Pi 3B+ Server localhost:3030 does not work after install Anvil App Server Jar.įailed to start built-in Postgres database: : Process failed This function will capture an image and save it as ‘foo.jpg’, then on line 23 we return this file as a media object which Anvil can then show in the app. This code is our “takepic” function, called when the button is clicked. Line 20 sees a Python decorator used to identify an area of code which can be called by the Anvil server. If you are using an older camera, change this to reflect your needs. Line 5 configures the camera to use the maximum resolution for the HQ camera. At line 4 we create an object which we can use to control the camera. The second enables access to the Raspberry Pi camera. The first will enable Anvil to handle images in our app. Import two modules of Python code on lines 2 and 3.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |