raspberry-pi

Displaying something in kivy while a process is running background

╄→гoц情女王★ 提交于 2021-02-11 12:38:20
问题 I'm trying to generate a graph when i'm leaving my kivy app using matplotlib. The process time to generate these graphs is about 20 seconds and i would like to warn the user during this time. I tried to use a Kivy pop up, and it didn't work. I tried to add a label, but it doesn't seems to work either. That's why I really need help ! My code : def fermerBanc(self): list_argument_graph=[] list_argument_graph.append(passerelle.graph1.y_low_min) list_argument_graph.append(passerelle.graph1.y_low

How to check simultaneously for serial input and input from keyboard (simultaneous use of readchar and serial library)

懵懂的女人 提交于 2021-02-11 08:49:05
问题 I am trying to code the following using python3 in a raspberry pi: 1) wait for a 14 digits bar code (barcode scanner connected through usb port and input received as keyboard data) 2) after a barcode is read, wait for serial communication (device connected to usb port and sends serial commands. could be one, or more....) the idea is that all commands received are going to be associated with the scanned barcode 3) the process of waiting for serial commands has to stop when a new barcode is

Tensorflow Lite - ValueError: Cannot set tensor: Dimension mismatch

拜拜、爱过 提交于 2021-02-10 20:47:46
问题 This is probably going to be a stupid question but I am new to machine learning and Tensorflow. I am trying to run object detection API on Raspberry Pi using Tensorflow Lite . I am trying to modify my code with the help of this example https://github.com/freedomtan/tensorflow/blob/deeplab_tflite_python/tensorflow/contrib/lite/examples/python/object_detection.py This piece of code will detect object from a image. But instead of a image I want to detect object on real time through Pi camera. I

OpenJFX 16ea on Pi 3 throws UnsatisfiedLinkError for libprism_es2_monocle.so: libGLESv2.so

橙三吉。 提交于 2021-02-10 16:15:27
问题 I try to use a JavaFX application on a Raspberry Pi 3 B+ with a small display connected to the display port. But this throws an error on startup of the application. Maybe first some quick questions to get started: Is the display port supported by JavaFX? Because this is the first time I use it instead of HDMI. Or is OpenJFX 16ea only for Raspberry Pi 4? I downloaded latest openjfx from https://gluonhq.com/products/javafx/. This is my startup command to run the (Maven) compiled application:

OpenJFX 16ea on Pi 3 throws UnsatisfiedLinkError for libprism_es2_monocle.so: libGLESv2.so

本秂侑毒 提交于 2021-02-10 16:04:47
问题 I try to use a JavaFX application on a Raspberry Pi 3 B+ with a small display connected to the display port. But this throws an error on startup of the application. Maybe first some quick questions to get started: Is the display port supported by JavaFX? Because this is the first time I use it instead of HDMI. Or is OpenJFX 16ea only for Raspberry Pi 4? I downloaded latest openjfx from https://gluonhq.com/products/javafx/. This is my startup command to run the (Maven) compiled application:

PyQt: How to run GUI on Raspberry Pi desktop startup?

北城以北 提交于 2021-02-10 15:09:31
问题 Dear Stackoverflow community, I am struggling with running a python script that executes a PyQt5 GUI on desktop startup of Raspberry Pi 3B with Raspbian Jessie. What do I have so far? Python script with shebang #!/usr/bin/env python3 in first line ( python3 --version is 3.4.2) running the GUI without any problems Shell script (.sh) that is able to execute the GUI with the following lines: #!/bin/bash python3 GUI.py Information that may help: If I place both files in the same directory

PyQt: How to run GUI on Raspberry Pi desktop startup?

寵の児 提交于 2021-02-10 15:02:28
问题 Dear Stackoverflow community, I am struggling with running a python script that executes a PyQt5 GUI on desktop startup of Raspberry Pi 3B with Raspbian Jessie. What do I have so far? Python script with shebang #!/usr/bin/env python3 in first line ( python3 --version is 3.4.2) running the GUI without any problems Shell script (.sh) that is able to execute the GUI with the following lines: #!/bin/bash python3 GUI.py Information that may help: If I place both files in the same directory

Qemu showing as black screen for ARM (VM)

旧巷老猫 提交于 2021-02-10 14:25:48
问题 So I'm using this site to setup Qemu on my Lubuntu VM. https://azeria-labs.com/emulate-raspberry-pi-with-qemu/ My errors happen when im trying to run the Qemu but the screen appears as black and it says "Guest has not initialized the display (yet)." Looking at the error it says: Error: invalid dtb and unrecognized/unsupported machine ID r1=0x00000183 r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 01 00 00 00 00 10 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system

Can I use CMAKE_SYSTEM_PROCESSOR, defined in a toolchain file, in CMakeLists?

隐身守侯 提交于 2021-02-10 12:12:21
问题 I'd like to add Raspberry Pi as a cross compilation target to a C++ project which uses CMake. Following the accepted answer to this question, I've set up the environment successfully. The project has many build targets already, all of them defined in the main CMakeLists.txt in a quite ugly way (it's an old project). In this file, there are some compiler flags set, depending on the CMAKE_SYSTEM_PROCESSOR variable, for example: if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") # do something endif

Can I use CMAKE_SYSTEM_PROCESSOR, defined in a toolchain file, in CMakeLists?

江枫思渺然 提交于 2021-02-10 12:12:02
问题 I'd like to add Raspberry Pi as a cross compilation target to a C++ project which uses CMake. Following the accepted answer to this question, I've set up the environment successfully. The project has many build targets already, all of them defined in the main CMakeLists.txt in a quite ugly way (it's an old project). In this file, there are some compiler flags set, depending on the CMAKE_SYSTEM_PROCESSOR variable, for example: if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^arm") # do something endif