~/talk

Bridging C++ and Java with Qt JNI

Talkat CppNorth 2025 · 2025-07-21..07-23· [embedded-and-hardware]
links:none on file
slides:none on file

A cross‑platform C++ app built with Qt and QML uses QJniObject to call Java ONNX Runtime for on‑device YOLO inference, handling HWC→CHW reordering and multiple array copies; initial pipeline runs ~4s per image, after bitmap/scaling and concurrency tweaks it reaches about 2.1 seconds per image on mid devices (older phones show 3–5s), demoed ~96% confidence detections and deployed through Android storage via MediaStore; JNI pitfalls (local/global refs, thread attach) get concrete fixes and reusable helpers.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 3:03Project overview and challenges
  3. 7:04Choosing Qt and Java for Android
  4. 10:21Tradeoffs in C++ and Java integration
  5. 15:00Qt JNI wrappers vs raw JNI
  6. 20:25Image processing pipeline
  7. 27:36Thread safety and references
  8. 31:54Performance optimizations
  9. 38:04Real-world AI architecture
  10. 43:36Live demo of the app
  11. 46:30Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.