Comments (3)
@dinghuawen Since this query is beyond edgetpu library, I recommend you look into external cpp libraries for showing images like gstreamer c++ with autovideo sink or xvimagesink or ximagesink. Otherwise, you should looks into general linux tools for displaying images on linux systems.
from edgetpu.
@dinghuawen , the answer strongly depends on what the rest of your app wants to do. Are you showing single images ? Are you streaming video with overlays ?
For video consider gstreamer with video/image sinks as Namburger suggested.
If you want to just have a graphical application, the devboard comes with Wayland (an X clone) which can support simple X windows or more sophisticated frameworks like Qt. Here's a minimal Qt app:
Simple hello world app:
#include <QApplication>
#include <QPushButton>
int main(int argc, char **argv) {
QApplication app (argc, argv);
QPushButton button ("Hello world !");
button.show();
return app.exec();
}
CMakeLists.txt
for building:
cmake_minimum_required(VERSION 3.1.0)
project(helloworld)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
find_package(Qt5 COMPONENTS Widgets REQUIRED)
add_executable(helloworld main.cc )
target_link_libraries(helloworld Qt5::Widgets)
To run do:
sudo apt install qtbase5-dev qtwayland5
cmake ./
make
./hello_world -platform wayland
from edgetpu.
Hi @mtyka, @Namburger
Thank you for the responses. I solved the problem according to your suggestions
from edgetpu.
Related Issues (20)
- GELU Activation
- edgeTPU model inference not working on coralmicro HOT 1
- TPU is no longer available - '/dev/apex_0': No such file or directory HOT 8
- Segmentation fault when running example script or custom models on usb coral HOT 2
- Gasket fails on 6.5.x kernels HOT 3
- AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' HOT 1
- Number of MAC PEs in the usb accelerator?
- Failed to load delegate from edgetpu.dll
- Vertex AI tflite converted to EdgeTPU poor performance HOT 1
- Coral Camera for Google Coral TPU is not available through any site
- Yolox-nano tfl.strided_slice op not supported on DarwiNN
- Edgetpu Compiler Compile Error HOT 1
- Issue while converting ONNX to TFlite.
- Edgetpu Compiler Compile Error
- Help understanding edgetpu compiler optimizations
- Inference Slower than claimed and using too much CPU.
- ASPM support?
- Wifi options not available in network manager after using the nmtui command on the coral devboard
- Coral dev board IOMMU support
- IMX8PLUS need enable MSI-X for M2 TPU accelerator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edgetpu.