Augmented Reality & Camera Features
En bref
Augmented reality and camera features turn the phone into a precision tool for petanque: AR distance measurement between jack and boules with centimetre-level accuracy, AR-overlay rules tutorials projecting virtual props onto real terrain, automatic on-device boule and jack detection, AR replay with 3D trajectory rendering viewable from any angle, and a frame-by-frame slow-motion shot analyser — all running on-device with no specialised hardware.
Comment ça fonctionne
The AR stack uses ARKit on iOS and ARCore on Android via Expo's native modules, with WebXR fallbacks where supported. The camera, accelerometer and depth sensors combine to anchor virtual content to real-world surfaces with centimetre-level accuracy in good lighting.
AR distance measurement lets a player point the phone at the playing area, tap the jack, then tap each boule; the app overlays a measurement line and reports the distance in centimetres. It is a coaching and learning tool, not a substitute for an official measurement (which requires calibrated callipers), but it is fast and surprisingly accurate — typically within 1-2 cm at competition distances. Multiple boules can be measured in sequence and ranked closest-to-jack.
AR-overlay rules tutorials project a virtual jack and boule sequence onto the player's actual terrain, walking through scenarios — "this is the throwing circle, this is the minimum jack distance, this is what a foot fault looks like". Beginners can practise the rules on real ground with virtual props, and clubs running try-petanque sessions can use the same module as a teaching aid.
Boule and jack detection uses an on-device computer vision model to recognise boules and the jack in any camera frame. It powers the measurement tool's auto-tap, makes the slow-motion analyser smarter (highlighting which boule the player threw) and feeds the replay module by tracking trajectories.
AR replay records a short video clip with embedded 3D trajectory data, then lets the user replay the throw from any angle by moving the phone — the boule's path is rendered as a glowing arc that can be inspected from above, behind or alongside. The slow-motion shot analyser captures at the device's max frame rate (240 fps on recent iPhones), then plays back with a frame-by-frame scrubber, optional grid overlay and side-by-side comparison against a reference clip from a pro. All processing is on-device for privacy; clips can be optionally shared into the social layer.
Capacités clés
- AR distance measurement between jack and boules with centimetre-level accuracy
- AR-overlay rules tutorials projecting virtual jack and boules onto real terrain
- On-device boule and jack detection from any camera frame
- AR replay with 3D trajectory rendering viewable from any angle
- Slow-motion shot analyser with frame-by-frame scrubber and reference comparison
- ARKit, ARCore and WebXR support for broad device coverage
- On-device processing for privacy with optional social sharing
En pratique
After a training session, a player can't tell which of two close boules is winning the point. They open the AR measurement tool, tap the jack, tap both boules — 4.7 cm and 5.1 cm, ranked. Later they record a slow-motion of their tirer; back at home they scrub frame-by-frame and compare against a pro reference clip side-by-side, spotting that their wrist releases too early.
The next day a beginner friend visits the club; the player launches the AR rules overlay and walks them through throwing-circle position with virtual props on the actual terrain — far more memorable than reading a rulebook. They share a 10-second AR-replay clip of their best carreau to the activity feed.
Fonctionnalités de ce sous-système
5| ID | Status | Fonctionnalités |
|---|---|---|
| F15.10.01 | Livré | PL-F1510 ✅ PL-F1510 |
| F15.10.02 | Livré | PL-F1510 ✅ PL-F1510 |
| F15.10.03 | Livré | PL-F1510 ✅ PL-F1510 |
| F15.10.04 | Livré | PL-F1510 ✅ PL-F1510 |
| F15.10.05 | Livré | PL-F1510 ✅ PL-F1510 |