r/computervision • • 15d ago

Discussion I built haralickt: > 20x faster GPU-accelerated Haralick texture features (GLCM) in PyTorch with identical precision to Mahotas

0 Upvotes

Hi everyone!
If you work with texture analysis (medical imaging, satellite data, or industrial defect detection), you've likely noticed that classic libraries like mahotas and scikit-image compute Gray-Level Co-occurrence Matrices (GLCM) and Haralick features strictly on the CPU. On large datasets, this quickly becomes a major pipeline bottleneck.
To solve this, I wrote and open-sourced haralickt — a library that offloads these computations to the GPU using vectorized matrix operations in PyTorch and CUDA.
Key highlights:
• > 20x faster than traditional CPU implementations on high-resolution images and batches.
• Identical numerical precision to classic implementations (verified against mahotas).
• PyTorch-native: works seamlessly with torch.Tensor on GPU without costly CPU-GPU data transfers.
• Open Source (MPL 2.0): free to use in research and commercial projects.
Quick installation:
bash
pip install haralickt
Используйте код с осторожностью.
GitHub repository & benchmarks: [https://github.com/SergeiyVaryukhin/haralickt-1.0.0]
This is my first public release (v1.0.0), so I would really appreciate any feedback, bug reports, or ideas for new features. If you find it useful for your projects, a star on GitHub would mean a lot!


r/computervision • • 15d ago

Discussion 🚀 **Introducing GRIP-Benchmark-34: A Large-Scale Benchmark for Visual Geometry, Spatial and Physical Reasoning in VLMs**

0 Upvotes

🚀 Introducing GRIP-Benchmark-34: A Large-Scale Benchmark for Visual Geometry, Spatial and Physical Reasoning in VLMs

I'm excited to share GRIP-Benchmark-34, an open synthetic benchmark designed to evaluate the visual reasoning capabilities of Vision-Language Models (VLMs).

What's included?

  • 100,000 synthetic images
  • 500,000 image-question pairs
  • 34 sub-benchmarks
  • 9 reasoning families
  • 5 progressive difficulty levels per image
  • Independently validated ground-truth answers

Research areas covered:

  • Geometric and spatial reasoning
  • 2D and 3D visual reasoning
  • Physical and mechanical reasoning
  • Topological and graph reasoning
  • Inductive and analogical reasoning

The benchmark uses programmatic generation, deterministic ground truth and independent validation to support controlled evaluation of VLM capabilities.

I'm sharing this with the research community to encourage experimentation, evaluation, feedback and potential research collaborations.

📊 Dataset: https://huggingface.co/datasets/bilaljawaid980/GRIP-Benchmark

I'd love to hear from researchers working on VLMs, multimodal AI, spatial intelligence and visual reasoning.

Feedback and collaboration are welcome!


r/computervision • • 15d ago

Help: Project What breaks when you move a CV model from your GPU workstation to a Jetson / edge camera?

13 Upvotes

I’d like to hear from people who’ve deployed vision models to edge devices (Jetson, OpenVINO, Coral, ARM boards):

  • How do you convert and optimize models today (TensorRT, ONNX, TFLite, something custom)?
  • How much accuracy do you typically lose, and how do you find out where?
  • What’s the step that eats the most of your time?

I’m researching deployment pain points and would love specifics, like the last time a deployment went wrong and why.


r/computervision • • 15d ago

Research Publication [Research] Can V-JEPA2’s prediction error tell physically impossible events apart from possible ones? Our findings

9 Upvotes

Hi everyone! I’m one of the authors of “When Does Latent Prediction Error Support Physical Surprise Claims in Video World Models?”, accepted at the World Models in Physical AI Workshop at NeurIPS 2026.

We study a question that comes up when evaluating video world models: if an event produces high prediction error, how much evidence does that give us that the model detected a violation of physics?

We examine frozen representations, latent geometry, and prediction errors using IntPhys2, Physion++, and controlled Kubric experiments. A few findings:

  • Physically impossible events can receive lower prediction error than possible ones.
  • Changing a clip’s colors can substantially affect error while preserving its physics.
  • Repeating a single frame can produce higher error than the original moving clip.
  • Physical information can be accessible in a model’s representations without its prediction error reliably tracking physical validity.

One particularly interesting test involves a sphere stopping on a solid support or falling through a gap. Switching the support changes which motion is physically possible, but the model’s error does not consistently follow that change.

We propose an evaluation framework for checking when prediction error supports a physical-surprise interpretation. The conclusions are specific to the models and settings we tested; they don’t establish an absence of physical knowledge.

Paper: https://arxiv.org/abs/2611.01815
Figures and experiments: https://3-ml.github.io/jepa-surprise/
Code: https://github.com/3-ml/jepa-surprise

For people working on video representations or world models: how do you separate sensitivity to physical violations from sensitivity to appearance and motion? I’d appreciate feedback on our controls and evaluation setup!


r/computervision • • 15d ago

Discussion Tuning for physical security.

2 Upvotes

It’s pretty obvious that tuning a small model on actual surroundings yields much more accurate results for day-to-day activity. Even small/tiny models on dated architectures seem to do really well when looking at things they are familiar with.

My question is how does this relate to security when you are looking for events that are anything but day-to-day where you have no idea what people may look like, what the lighting may be at that moment, and where they will be coming from?

Are you better off sticking to a much larger pretrained model from the likes of Ultralytics or Roboflow? These don’t seem to make many mistakes with people. Compute resources are basically limitless with these tasks with modern NPUs and a detection pipeline that makes sense for the possible activity.


r/computervision • • 15d ago

Discussion Follow up- what actually fixed my unstable face shape classification

0 Upvotes

Couple of weeks ago I posted here about face shape results flipping between two labels with head angle. The advice was that the detector crop is probably jittering not the landmark plus one euro filter and median instead of mean.


r/computervision • • 16d ago

Showcase I built a 100% pure-Rust implementation of SIFT, RANSAC homography, and image stitching (zero OpenCV/C++ FFI dependencies)

Thumbnail
gallery
20 Upvotes

Hi r/computervision,

If you have ever had to bundle OpenCV into a Docker container, deploy to an embedded target, or compile across platforms without wrestling with CMake and C++ shared library dependencies, you know how heavy the toolchain friction can be.

To make classic feature extraction lightweight and portable, I built pure-sift: an open-source, 100% pure-Rust library implementing Lowe's SIFT (Scale-Invariant Feature Transform, US6711293B1 patent expired in 2020), 2D Similarity RANSAC, 4-Point DLT Planar Homography, and an automated image stitcher with zero OpenCV or C++ dependencies.

Technical Implementation:

  • SIFT Scale Space:

    • Octave pyramid generation with separable 1D Gaussian kernels.
    • Difference-of-Gaussians (DoG) scale-space extrema detection across 26-neighborhood volumes.
    • 3D quadratic Taylor-expansion sub-pixel and sub-scale localization (< 0.12 px error).
    • Hessian edge-ratio filtering ➡️ (r <= 10.0) using the trace and determinant to discard flat edges.
    • Secondary orientation peak splitting (peaks within 80% generate extra keypoints).
    • 128-dimensional illumination-invariant gradient descriptors, parallelized via Rayon.
  • Robust Feature Matching & Geometry:

    • Lowe’s ratio test (threshold 0.75) for 128-D Euclidean nearest-neighbor matching.
    • 2-point 2D Similarity RANSAC (rotation, scale, translation).
    • 4-point Direct Linear Transform (DLT) 3x3 Homography RANSAC with horizon validation ➡️ (det(H) > 0).
    • Bilinear feather-blended panoramic stitcher.
  • Visual Catalog & Retrieval:

    • 128-bit compact Hamming binary hash index + geometric RANSAC reranking for image identification.
  • Portability:

    • Zero unsafe code (#![forbid(unsafe_code)]).
    • Core math and image processing compile cleanly with --no-default-features for embedded, static binary, or WebAssembly (WASM) environments.

Dual-licensed under MIT or Apache-2.0.

I would love to get your feedback, hear about your edge cases, and see what benchmarks you would like to see compared to OpenCV's implementation!


r/computervision • • 16d ago

Help: Project I've been developing a computer vision tracking system for an open-source desktop companion robot (MediaPipe, AprilTags, ROI tracking)

6 Upvotes

I've been working on a personal robotics project and would be interested to hear what people on this sub think of my approach to the computer vision side of things.

The project is an open-source desktop companion robot. It uses a Raspberry Pi Pico W controls a two-axis servo neck, allowing the physical head to follow people.

The project's moved forward quite a bit: I've mounted a phone on for an animated face with pupils that run their own face tracking, and I have the pico running EMA smoothing, but the above video shows how the robot's CV works best.

The laptop handles all the processing, including the computer vision.

The tracking system has been one of the more interesting parts of the development.

My current approach works roughly as follows:

  • A fixed webcam observes the space around the robot.
  • People are identified and tracked using AprilTags that they wear.
  • The laptop scans for specific AprilTag IDs and uses MediaPipe to detect faces within an ROI around each tag.
  • I created two LOBFs through calibration, which convert the 2D coordinates of the face closest to the currently focused AprilTag into angles for the robot's servos.
  • These angles are sent to the Pico over serial.
  • If an AprilTag disappears, the script continues "coasting", retaining the previous ROI and using the last known AprilTag position.
  • If the face disappears, the script uses its previous momentum to predict where it should be.

The robot can also talk and listen, with its LLM and speech recognition running locally on the laptop.

One thing I'd eventually like to implement is speaker detection using mouth movement. The idea is that the robot could detect who's speaking and shift its attention towards them.

There's a complication with my current approach, though: because the script only looks for faces within the ROI around the currently focused AprilTag, it can only detect mouth movement from the person it's currently tracking.

I could change the script to look for faces and monitor speaking activity across every person wearing an AprilTag, but I'm not sure how efficient that would be, particularly given that the laptop is already running the LLM and other models.

I'm curious what people here think about the current approach and where I should take it next.

  • Would you handle the tracking or prediction differently?
  • Is it worth running face detection across all tagged people to identify who's speaking, or would there be a more efficient approach?
  • Are there techniques I should be looking at to improve tracking continuity when an AprilTag or face temporarily disappears?

The project is open source, and I'd welcome suggestions, criticism or contributions!

GitHub: https://github.com/SpaceMonkeyAlfa/PAL9000-Desktop-Robot

Development blog: https://spacemonkeyalfa.com


r/computervision • • 16d ago

Discussion Differentiable 6-DoF Camera Pose Recovery & Shading using Penrose Twistor Theory (CP^3) & Complex64 Spinors

Post image
32 Upvotes

I've been a massive fan of Sir Roger Penrose's work for years, and I've always wondered if twistor theory (CP³) and 2-spinors could be translated out of theoretical physics equations into a practical, differentiable graphics pipeline.

As someone exploring this intersection with heavy AI co-piloting, I wanted to see if we could build a rendering engine that skips 4x4 Euclidean matrices entirely. Surprisingly, the math clicked: the engine uses native complex64 spinor conjugation and eigenspinor incidence residuals to do end-to-end 6-DoF pose recovery and depth shading out of the box.

What's shown in the image above: An end-to-end 6-DoF camera pose recovery test on a 3,500-vertex Stanford Bunny .ply scan. Starting from a heavily misaligned camera guess (Initial Guess), the engine optimizes both 3D position and SU(2) orientation purely from 2D pixel loss, converging to machine-precision zero loss in 150 epochs (Final Recovered vs Ground Truth).

Key Technical Highlights:

  • SU(2) Spinor Conjugation: Camera rotation is applied via unitary spinor conjugation (X_cam = R_A * X * R_A^†), keeping updates strictly on the manifold without gimbal lock.
  • Differentiable Depth Relief Shading: Computes signed longitudinal depth along ray spinors (Im(<pi | diff>)) to render smooth 3D studio lighting contours without a traditional Z-buffer.
  • Hardware Portability: Verified with identical convergence across Intel XPU (SYCL), NVIDIA CUDA, and CPU.

Links & Open-Source Ecosystem (isopidi-stack):

Would love to hear what graphics, CV, and AI security folks think of the approach!


r/computervision • • 16d ago

Research Publication Vehicle Part Segmentation | Training and Model Comparison

4 Upvotes

Hi everyone.

I’ve been experimenting with different models for vehicle part segmentation, training and comparing YOLO26, RF-DETR, DINOv3 and SAM 3.

I’ve shared the code, results and comparisons on GitHub and Hugging Face:

GitHub: GH-Repo

Hugging Face: HG-Repo

Sharing it in case it’s useful to anyone working on something similar.

Any feedback or suggestions are very welcome!

I hope this is useful to someone and saves them a few days of training, fine-tuning and comparing models from scratch.


r/computervision • • 15d ago

Help: Theory Setup

1 Upvotes

Can anyone guide me on the way to make my own CV for games like NBA 2k & Possibly cod??

What is the first step of learning this


r/computervision • • 16d ago

Discussion Ling-3.2-flash's Grad-CAM demo switches between dog and cat heatmaps on the same input image

11 Upvotes

The result shown in Ant Ling's Ling-3.2-flash Grad-CAM demonstration is class-specific: the input image stays fixed while the selected class changes between boxer and tiger cat, changing the displayed activation heatmap.

The recording follows the model from reading the original research PDF through implementing the method and running it on CPU. In the final visualization, the requested class and the highlighted image regions can be inspected together. Switching the class exposes the different heatmaps produced for two labels on that same source image.


r/computervision • • 16d ago

Showcase I turned Assetto Corsa into a LiDAR + multi-camera simulator

Thumbnail
reddit.com
1 Upvotes

r/computervision • • 16d ago

Showcase We trained our own Pokemon card scanner models, dozens of cards from one image

22 Upvotes

We built our owns models & free app because we weren’t happy with what else exists. The good apps are paid but slow, and often using TinEye. The free apps are often faster but accuracy is through the floor as soon as you get some glare.

I’m really pleased with what we’ve built. It can accurately detect dozens of cards from one image, spot many different variants of each card, and is resilient to glare and awkward angles caused by sleeves and binders.

How it works

A small card detector we trained ourselves, on a MobileNetV4-small backbone, finds every card in the photo, even rotated, overlapping or in a pile.

Each card is straightened and turned into a fingerprint by a fine-tuned DINOv3 ViT-S/16. That fingerprint is matched against about 100k reference images of cards in English, Japanese and Chinese.

Reprints often share the same art, so to tell them apart we read the collector number (OCR) and line the card up against our scans using classic computer vision (SIFT) to compare the small details.

First results appear in about 0.3s, and the full double-check finishes a second or so later. As the models improves, the double-check is finding even fewer places to correct.

We trained the models on cloud GPUs using many thousands of real card photos. We labelled those photos by hand at first with custom tooling, and once the models got good enough we only had to double-check their answers.

OPEN SOURCE

We built this for the love of the game, not to monetise people for $7 a week like many similar apps do. So we’re soon also open sourcing all of our models, the scanner index, and the card data :)

pennysleeve.app if you want to give it a try. We’re currently iOS only.

(App is 100% free without any ads, tracking, or subscriptions)


r/computervision • • 16d ago

Help: Project Help for an amateur

0 Upvotes

On my Mac, I'm currently vibe-coding a way of reading tablature for stringed instruments (guitar, etc.). Scanned/PDF tablature has staff lines, like conventional musical notation. However, the staff lines often intersect with numbers. This creates challenges for the under-the-hood OCR methods that are built into Apple. I've considered probabilistic as well as adversarial models but this is proving to be tough. The next step up would be a 500MB model which is too cumbersome for this small app. Does anyone out there have any ideas how to get more accurate recognition?

I know my lingo is probably all garbled and ignorant; forgive me, as I mentioned above, I'm an amateur.


r/computervision • • 16d ago

Help: Theory After segmentation, further analysis

2 Upvotes

Hi everyone
What models are best for such a task:
Is there a model that can perform region-level or object-level analysis on semantic segmentation outputs, extracting and analyzing specific regions of interest?

Not to segment, the masks and segmentation are done


r/computervision • • 16d ago

Showcase We measured 602 vision models across 5 different GPUs

Post image
22 Upvotes

We measured 602 timm ImageNet classifiers with TensorRT INT8 on five NVIDIA GPUs: L4, RTX 2080 Ti, Jetson AGX Thor, AGX Orin and Orin NX. Each line in the chart is a GPU's Pareto front.

The best model depends on the GPU. Of the 149 models measured on all five GPUs, only 2 are on every front.

  • PiT-B is the best choice on Thor (83.9% in 1.05 ms), but 2.3-2.8× slower than the front everywhere else.
  • ConvNeXt-B is on the front everywhere except the L4.
  • MobileNetV2-1.4 is on the front everywhere except Thor.

INT8 cost: a median of −0.76 top-1 against timm's FP32 numbers, across 609 models.

Method: TensorRT, batch 1, GPU compute only, timm default input size. Accuracy is measured on the full ImageNet val set.

Every model has its own page per GPU, with full numbers: https://embedl.com

What should be measured next?


r/computervision • • 17d ago

Commercial I used webcam head tracking to turn my Windows desktop into a 3D window

501 Upvotes

I’m developing Holoscape, a Windows wallpaper app that uses webcam head tracking to update the viewpoint in a 3D scene.

Moving sideways reveals different parts of the forest, with nearby trees shifting more than distant ones. This creates the illusion of looking through a window.

What would you measure to evaluate how convincing the effect is, especially tracking latency and stability?

I’m the developer. If you’d like to follow the project, you can wishlist Holoscape on Steam.


r/computervision • • 16d ago

Help: Project Automated plot x&y extraction from png/jpeg

1 Upvotes

I have thousands of 2D plots saved as images, from where I need to extract x&y values in the most efficient way. Some plot may have multiple lines. Sonnet 5.5 is pretty good at it, but it takes >5 minutes per plot and consumes too much credits.

Does anyone knows a way of doing it more efficiently?

Thanks everyone!

Example: Need to extract F1 x&y . Red '+' were identified by sonnet.


r/computervision • • 16d ago

Discussion Same smartphone video, same golf green: standard 3DGS vs. my constrained pipeline

Thumbnail
gallery
0 Upvotes

Image 1: standard 3DGS with default-like settings, green cropped, no inverse rendering (I did not record the exact iteration count, so this is not a controlled comparison). It ends up with holes, spiky “urchin” splats and floaters.
Images 2–3: my pipeline, built on the open-source 3DGS-MCMC code with added surface constraints and inverse rendering (albedo/roughness), 13.8M splats.

The source is a handheld smartphone video (about 1–1.5 minutes walking around the perimeter, 407 frames used). Only video was used — no LiDAR data, no survey. The code was developed entirely through AI co-development; I do not write code myself.

Measured on the final surface: holes cover about 0.7% of the area and floaters about 0.1%. The outer edge of the capture area is still rough. Mowing-line patterns show up in the height map and match the footage. Local vertical scatter is about 1.5–3.4 cm, relief about 27 cm over a ~38 m span including the fringe (scale is an estimate, ±10% or more).

Not verified yet: absolute accuracy (no comparison with terrestrial laser scans or RTK-GPS), the lighting separation, and other courses (only one green tried).

Feedback from anyone who has laser-scanned turf or benchmarked photogrammetry against ground truth would be very welcome.


r/computervision • • 16d ago

Showcase I built an open-source tool that finds runners' race photos by bib number, with face matching for when the bib is hidden

3 Upvotes

Race photographers shoot thousands of photos per event, and runners usually have to scroll through all of them to find themselves. I built Race Photo Finder to fix that: point it at a folder of event photos, and runners can search by their bib number.

How it works

photo → person detection → bib detection + OCR → face embedding → participant match

  1. YOLO26 finds each person, and a fine-tuned YOLO26s finds the bib inside the person crop
  2. PaddleOCR reads the bib number
  3. InsightFace (SCRFD + ArcFace) builds a face template for each runner, only from photos where their bib was read
  4. Photos with a hidden, blurred or turned-away bib get matched to a runner by face, conservatively. Face matches never feed back into the templates, so one bad match can't snowball.

It all runs locally, with an SQLite index and a small web UI for searching. Once an event is processed, the search UI is a lightweight Flask app, so you can deploy it with its index to any Python web host or VPS and share the link with runners.

🔗 GitHub: https://github.com/dimfot3/RacePhotoFinder

I'd love feedback on:

  • Accuracy on your own race photos: where does it fail?
  • The face-matching approach: too strict, or too loose?
  • Code structure and ease of setup
  • Would photographers or race organizers actually use this? What's missing?

r/computervision • • 16d ago

Help: Project What are the best real-time skin smoothing solutions?

0 Upvotes

I have a live streaming app, and I need real-time skin smoothing + light retouching (dark circles, blemishes, eye brightening) in web browsers, on a live camera feed at 720p/30fps

What is the best commercial SDK to use that is battle tested? Or are there open source examples to build this on my own?


r/computervision • • 17d ago

Help: Project [Open Source] Building DiffusionEngine – A Modern, Modular DDPM Framework in PyTorch. Looking for Contributors

3 Upvotes

What if we could bring modern diffusion research together into one unified, extensible PyTorch framework instead of implementing and maintaining every algorithm in isolation?

That's the idea behind DiffusionEngine, an open-source project I've been building:

https://github.com/Himanshu7921/DiffusionEngine

The goal is to build a modern DDPM framework that brings together established diffusion algorithms, research-based improvements, advanced sampling methods, and training strategies under a single, consistent pipeline.

The project already includes several diffusion implementations, and I'm actively working on extending the existing DDPM framework with more advanced features.

I'm looking for contributors interested in deep learning, generative models, PyTorch, and diffusion research.

Some areas where contributions are welcome include:

  • Implementing diffusion algorithms from research papers.
  • Improving existing DDPM components and training strategies.
  • Developing and integrating advanced sampling methods.
  • Exploring improved model architectures and conditioning mechanisms.
  • Testing, benchmarking, and optimizing existing implementations.

The focus is not just on implementing more algorithms. It's about making them work together seamlessly through a unified, modular, and configurable framework.

If you're interested in contributing, collaborating, or learning through hands-on implementation, I'd be glad to have you involved.

Contributors of all experience levels are welcome, provided they're willing to learn, implement, and test their work.

GitHub: https://github.com/Himanshu7921/DiffusionEngine