proomt

Search

Search posts, papers, and topics

All posts

CodeName OneShai Almog4 min readintermediate

CodeScanner.scan(): Barcode Scanning Without Rebuilding the Camera Pipeline

Summary

CodeScanner.scan() and VisionCameraView provide high‑level, async‑first APIs that hide the camera plumbing in Codename One, letting apps scan barcodes or run vision analyzers (faces, pose, segmentation) with a single call and without rebuilding native pipelines.

  • One‑call API (`CodeScanner.scan`) opens a scanner form, returns the first accepted barcode via an `AsyncResource`, and restores the previous UI on cancel or error.
  • `VisionCameraView<T>` embeds a live camera preview in a form, keeps only the newest frame for analysis, delivers typed results on the EDT, and releases resources on form hide/close.
  • Analyzers (e.g., `FaceDetector`, `SelfieSegmenter`) are supplied by the caller, keeping native dependencies minimal and allowing build‑time pruning of unused vision models.
  • Results are typed (`BarcodeFormat`, `Face[]`, `PoseLandmarks`) and include geometry helpers to map normalized coordinates to pixel bounds for UI overlay.

By abstracting the camera lifecycle and vision pipeline into reusable components, developers can add common scanning or detection features with far less code and fewer platform‑specific bugs, while still retaining the ability to drop in custom native models when needed.

6/10

Related reading

  1. We Stopped Waiting for Platform Changes to Find Us

    Codename One added a daily automated scan of Apple and Google deprecation notices, linking each notice to concrete builder artifacts before work is created. The system caught the Android 16 back‑gesture change and enabled a permission‑free ContactPicker, turning policy shifts into repeatable, evidence‑backed patches.

    CodeName Onecodenameone.com3 min
  2. Rootless Jailbreak Detection: Updating the Signals, Not the Claim

    The blog explains how Codename One updated its iOS jailbreak detector to handle modern rootless jailbreaks (e.g., palera1n, Dopamine). It replaces old file‑system probes with lstat checks, mount scans, and dual‑opinion API calls (libc vs raw syscall) to spot hidden bootstraps and instrumentation. It also reorders package‑manager URL‑scheme probes to prioritize Sileo, adds a background‑resume gate…

    CodeName Onecodenameone.com5 min
  3. ZuckOff Know when a camera is in the room

    ZuckOff is a mobile app that passively scans for Bluetooth advertisements from camera‑glasses (Ray‑Ban Meta, Oakley Meta, Snap Spectacles, etc.) and notifies the user when such devices are nearby. It logs all BLE devices, lets users whitelist known glasses, offers iOS widgets and Live Activity alerts, and can export logs as CSV. The app is free, has no account, and is marketed alongside merch.

    Hacker News front pagezuckoff.app2 minreleaseHN58799
  4. App Hardening: One Obfuscation Pipeline Across Every Port

    Codename One adds a cloud‑side hardening step that runs on the merged JAR before it is split into Android, iOS, JavaScript, and desktop binaries. It can rename symbols, encrypt string literals, and insert opaque‑predicate control‑flow guards at configurable levels (off → standard → aggressive → paranoid). The transforms are selective per platform to avoid breaking optimizers, and a mapping is kep…

    CodeName Onecodenameone.com6 min
  5. Article: Architecting Secure and Scalable Facial Verification Systems

    A real‑world post‑mortem of a high‑volume face verification service that moved from a naïve synchronous API to an async, layered pipeline (edge validation, preprocessing, decoupled detection/verification, decision engine) to achieve 8.5k rpm, p99 < 1.8 s, 30 % cost savings, and strict privacy controls.

    InfoQinfoq.com15 min
  6. CodeMidas: Scaling Agentic Coding RL Environments from Code Itself

    CodeMidas builds RL environments directly from open‑source code: agents explore a repo, infer a spec, generate tests from the original implementation, and filter tasks via execution checks. The pipeline yields 5,545 high‑quality coding tasks across 23 languages and 15 domains. Training the MiMo‑V2.5 agent with GRPO on this dataset improves benchmark scores by 8‑18% (e.g., DeepSWE +11.7%, ProgramB…

    Hugging Face Daily Papersarxiv.org1 minpaper