r/computervision • • Mar 25 '26

Showcase Achieving 99.97% lane detection accuracy in a dynamic 3D environment using only OpenCV, DBSCAN, and RANSAC (No DL)

123 Upvotes

I recently built an autonomous driving agent for a procedurally generated browser game (slowroads.io), and I wanted to share the perception pipeline I designed. I specifically avoided deep learning/ViTs here because I wanted to see how far I could push classical CV techniques.

The Pipeline:

  1. Screen Capture & ROI: Pulling frames at 30fps using MSS, dynamically scaled based on screen resolution.

  2. Masking: Color thresholding and contour analysis to isolate the dashed center lane.

  3. Spatial Noise Rejection: This was the tricky part. The game generates a lot of visual artifacts and harsh lighting changes. I implemented DBSCAN clustering to group the valid lane pixels and aggressively filter out spatial noise.

  4. Regression: Fed the DBSCAN inliers into a RANSAC regressor to mathematically model the lane line and calculate the target angle.

The Results: I dumped the perception logs for a 76,499-frame run. The RANSAC model agreed with the DBSCAN cluster 98.12% of the time, and the pipeline only threw a wild/invalid angle on 21 frames total. The result is a highly stable signal that feeds directly into a PID controller to steer the car.

I think it's a great example of how robust probabilistic methodologies like RANSAC can be when combined with good initial clustering.

GitHub is here if anyone wants to look at the filtering logic: https://github.com/MatthewNader2/SlowRoads_SelfDriving_Agent.git


r/computervision • • Nov 27 '25

Showcase In-Plane Object Trajectory Tracking Using Classical CV Algorithms

123 Upvotes

r/computervision • • May 18 '25

Discussion I've decided to post my YoloV5 Electronics identifier. Hope you like it!

Thumbnail
gallery
123 Upvotes

Here is the link for the Model. It does basic parts. Give me your opinion!

https://huggingface.co/Oodelay/Electrotest


r/computervision • • Apr 29 '22

Showcase Thanks to you all, I found that my "object in hand" feature extraction model is much more than that! More info in the comments.

123 Upvotes

r/computervision • • Dec 16 '18

We created a free, fully automatic tool to remove the background of a person image: remove.bg

123 Upvotes

It consists of multiple deep learning convnet architectures which also compute fine details such as hair

  • No user input is required

  • All the training data was manually generated with sweat and tears

  • Persons are extracted and the resulting images are scaled to max 500px

Its 100% free and you can try it here: remove.bg

Originally we planned to build a smartphone app which relied on this functionality. However, it worked exceptionally well, so that we decided to just publish it as a stand-alone version.


r/computervision • • Mar 16 '26

Help: Project How would you detect liquid level while pouring, especially for nearly transparent liquids?

122 Upvotes

I'm working on a smart-glasses assistant for cooking, and I would love advice on a specific problem: reliably measuring liquid level in a glass while pouring.

For context, I first tried an object detection model (RF-DETR) trained for a specific task. Then I moved to a VLM-based pipeline using Qwen3.5-27B because it is more flexible and does not require task-specific training. The current system runs VLM inference continuously on short clips from a live camera feed, and with careful prompting it kind of works.

But liquid-level detection feels like the weak point, especially for nearly transparent liquids. The attached video is from a successful attempt in an easier case. I am not confident that a VLM is the right tool if I want this part to be reliable and fast enough for real-time use.

What would you use here?

The code is on GitHub.


r/computervision • • Dec 11 '25

Commercial Luxonis - OAK 4: spatial AI camera that runs Yocto, with up to 52 TOPS

122 Upvotes

Hey everyone. We built OAK 4 (www.luxonis.com/oak4) to eliminate the need for cloud reliance or host computers in robotics & industrial automation. We brought Jetson Orin-level compute and Yocto Linux directly to our stereo cameras.

You can see all the models it's capable of running here: https://models.luxonis.com

But some quick highlights: YOLOv6 - nano: 830 FPS
YOLOEv8 - large: 85 FPS
DeepLabV3+: 340 FPS
YOLOv8-large Pose Estimation: 170 FPS
Depth Anything V2: 95 FPS
DINOv3-S: 40 FPS

This allows you to run full CV pipelines (detection + depth + logic) entirely on-device, with no dependency on a host PC or cloud streaming. We also integrated it with Hub, our fleet management platform, to handle deployments, OTA updates, and collect "edge case" (Snaps) for model retraining.

For this generation, we shipped a Qualcomm QCS8550. This gives the device a CPU, GPU, AI accelerator, and native depth processing ISP. It achieves 52 TOPS of processing inside an IP67 housing to handle rough whether, shock, and vibration. At 25W peak, the device is designed to run reliably without active cooling. 

Our ML team also released Neural Stereo Depth running our proprietary LENS(Luxonis Edge Neural Stereo) models directly on the device. Visit www.luxonis.com to learn more!


r/computervision • • Mar 21 '25

Showcase Hair counting for hair transplant industry - work in progress

Post image
122 Upvotes

r/computervision • • Dec 25 '25

Showcase Found A New Tool to Rapidly label For Custom YOLO models for FREE

Post image
121 Upvotes

AutoLabel

I wanted to learn simple image labeling but didn't want to spend money on software like roboflow and found this cool site that works just fine. I was able to import my model and this is what it was able to 'Autolabel' so far. I manually labeled images using this tool and ran various tests to train my model and this site works well in cleanly labeling and exporting images without trouble. It saves so much of my time because I can label much faster after autolabel does the work of labeling a few images and editing already existing ones.


r/computervision • • Sep 26 '26

Showcase I'm learning to solve a Rubiks cube, so I built an app that scans mine and walks me through the solve

120 Upvotes

I am using image processing to solve a Rubiks cube.
The pipeline is plain image processing with OpenCV. It finds the stickers with edge detection, fits a 3x3 grid to them, and flattens each face with a perspective warp. It then reads each sticker's colour in LAB and matches it against a palette of reference colours measured from my previous tests. Glare was the hardest part to find a solution to. What fixed it was letting the hue count more than the brightness, and making sure each colour ends up with exactly 9 stickers.
Has anyone found a better way to handle glare?

Code: https://github.com/donsolo-khalifa/RubikSolver


r/computervision • • Sep 18 '25

Commercial Gaze Tracker 👁

120 Upvotes

This project is capable to estimate and visualize a person's gaze direction in camera images. I compiled the project using emscripten to webassembly, so you can try it out on my website in your browser. If you like the project, you can purchase it from my website. The entire project is written in C++ and depends solely on the opencv library. If you purchase you will you receive the complete source code, the related neural networks, and detailed documentation.


r/computervision • • May 17 '24 Take My Silver Heart of Silver

Showcase CNN vs. Vision Transformer: A Practitioner's Guide to Selecting the Right Model

120 Upvotes

I wrote a deep dive blog post on deciding between Convolutional Neural Nets and Vision Transformers for real-world projects. If you're in a hurry: Below is a decision tree to quickly help you decide which architecture to use. In the blog post itself I go into a lot more detail about the underlying reasons for deciding between the two architectures.

https://tobiasvanderwerff.github.io/2024/05/15/cnn-vs-vit.html


r/computervision • • May 16 '24

Discussion 2024 review of OCR tools extracting text from handwritten forms and documents

120 Upvotes

July 2025 Update: Things have changed a lot in a year, so I've posted an update for 2025.


Hi everyone,

I was recently tasked with finding a solution to perform OCR on handwriting in forms (timesheets in my case, but this could also be applied to other handwritten forms and handwritten surveys, for example). Since I didn't find a comprehensive guide prior to doing my own research, I thought it could be useful if I shared my results here.

I hope this summary is helpful for anybody else on a similar search. YMMV, and all of these services offer free trials to test your own documents against. If I have missed any, please add them to the comments, or let me know and I can add them.

Quick summary.

The best results came from Handwriting OCR. This provided near-perfect transcriptions of the test subject, and extracted structured data too. It also had the best UI and direct export to Excel.

The test.

I took a sample image showing a basic timesheet with handwritten text. I ran this image through as many OCR services as I could find that claimed to offer handwriting to text OCR, and compared the results. I was looking not only for accuracy in transcribing the handwriting to text, but also the ability to extract the data in a structured form, either as JSON, or as a spreadsheet (CSV or Excel).

Notes.

Here's a list of the services I tried, and my notes as I went along. Most are online OCR services offering handwriting to text conversion. Also some large language models like GPT-4. I have also attached screenshots from some of these services to highlight what was good and bad.

Transkribus

Tested at: https://www.transkribus.org

/preview/pre/mfwdkpblxs0d1.png?width=1444&format=png&auto=webp&s=688665be8959c16083f48b52a7202f5f7e0379fe

This is one of the most well-known services offering handwriting recognition, with a focus on historical documents. As tested, the handwriting recognition was surprisingly poor, with lots of mistakes and non-words. Transkribus does offer the possibility to train on a particular style of handwriting (maybe useful if you have a lots of documents from one source), but for processing lots of documents where each document has handwriting from a new source, it looked like the handwriting to text conversion was too error-prone. This made it a non-starter for me.

  • Strengths:

    • May perform well for historical documents.

    • Offers a web UI.

    • Pricing seems reasonable.

  • Weaknesses

    • Handwriting recognition was really bad out of the box.

    • Requires the language to be preset - does not appear to detect the language automatically.

Google Document AI

Tested at: https://cloud.google.com/document-ai?hl=en#demo

I expected this to be the best of all, considering Google's massive investment in AI. I tested it through the demo here. Although Google Document AI does offer extraction of table data, the results were not great, with too many transcription errors. Based on these results, I would need to carefully review each extracted table for structure and content - not great. Aside from the demo page, there is no prebuilt UI so this would need a developer to integrate into my workflow.

  • Strengths

    • Inexpensive

    • Offers structured data extraction

  • Weaknesses

    • API only, requires developer to create a UI to process and download results.

    • Table extraction was inaccurate.

    • Handwriting recognition was not perfect.

Microsoft Azure AI

Tested at: https://azure.microsoft.com/en-us/products/ai-services/ai-document-intelligence

Azure Document AI

Like Google, Azure is one of the leaders in AI and document automation. I expected good results and in this case I was not disappointed. Azure read all handwriting correctly, and provided a correctly-formatted table containing this data. The downside for me, similar to Google AI, is that there is no UI provided (besides a demo portal) so this needs to be built from scratch by a development team.

  • Strengths

    • Inexpensive.

    • Accurate results.

    • Offers structured data extraction.

  • Weaknesses

    • API only - development costs of building your own interface.

    • Not fast

Pen to Print

Tested at: https://www.pen-to-print.com/handwriting-to-text-online-ocr

Pen to Print - transcription is good but no structured data.

This is a popular iOS and Android app that also has a web app too. The handwriting recognition was good, but the output was not in a structured form so the results are of limited use for my purposes.

  • Strengths

    • Simple UI.

    • Handwriting recognition was accurate.

  • Weaknesses

    • Feels quite basic.

    • Did not extract structured data.

Handwriting OCR

Tested at https://www.handwritingocr.com

HandwritingOCR - the best results, including all the data I wanted from the form.

Offers handwriting OCR and table data extraction, so this looked promising. Results were outstanding in my test - the transcription was error-free, and a separate tab allowed me to view and download the table data in Excel format. This is all provided inside a web UI with API access available.

  • Strengths

    • Excellent result - the best overall.

    • Extracts both key-value pairs and tables together.

    • Export directly to Excel.

    • Web UI was easy to use.

    • Inexpensive.

  • Weaknesses

    • No JSON export.

Nanonets OCR

Tested at: https://nanonets.com

Nanonets - incomplete data and transcription errors.

Offers a whole range of OCR services, including handwriting to text. At first glance, it looked impressive and I had high expectations of a good result. In my test, Nanonets managed to extract the table but with numerous handwriting transcription mistakes, so the result was only partially useful.

  • Strengths

    • Polished UI

  • Weaknesses

    • Transcription mistakes.

    • Expensive ($0.30 per page).

Google Cloud Vision AI

Tested at: https://cloud.google.com/vision/docs/drag-and-drop

Not to be confused with Google Document AI, though the transcription was in fact better. This service does not offer table data extraction though.

  • Strengths

    • Handwriting transcription was accurate.

    • Inexpensive.

  • Weaknesses

    • Does not extract structured data.

    • API only.

ChatGPT

Tested at: https://chatgpt.com and via API

I tried OpenAI's GPT 4 with Vision through both the API and ChatGPT. I found it can deliver very impressive handwriting to text conversion, but it also suffered from hallucination, and it could not reliably extract structured data. I also had problems with latency and timeouts when calling it through the API.

  • Strengths

    • Can be very accurate.

  • Weaknesses

    • Quite expensive and slow.

    • Tends to invent (hallucinate) text.

    • Would not reliably extract data in structured form.

Claude AI

Tested at https://claude.ai

Similar to GPT-4, I tried both Claude Sonnet and Opus. The results were ok but suffered from the same problems as GPT-4 - hallucination, and the unreliability of data extraction. Opus is really expensive, too.

Google Gemini Pro

Tested at: https://gemini.google.com/

Much worse than GPT-4, not worthy of further consideration at this point.



r/computervision • • Dec 18 '18

Can extracting data and visualizing it be considered theft?

120 Upvotes

r/computervision • • Dec 09 '25

Showcase Geolocation AI, able to geolocate an image without exif data or metadata.

119 Upvotes

Hey, I developed this technology and I’d like to have an open discussion on how I created it, feel free to leave your comments, feedback or support.

https://app.oceanir.ai to try it out


r/computervision • • Sep 02 '25

Showcase Tried building an explainable Vision-Language Model with CLIP to spot and explain product defects!

Post image
119 Upvotes

Hi all!

After quite a bit of work, I’ve finally completed my Vision-Language Model — building something this complex in a multimodal context has been one of the most rewarding experiences I’ve ever had. This model is part of my Master’s thesis and is designed to detect product defects and explain them in real-time. The project aims to address a Supply Chain challenge, where the end user needs to clearly understand why and where a product is defective, in an explainable and transparent way.

I took inspiration from the amazing work of ClipCap: CLIP Prefix for Image Captioning, a paper worth a reading, and modified some of his structure to adapt it to my case scenario.

For a brief explanation, basically what it does is that the image is first transformed into an embedding using CLIP, which captures its semantic content. This embedding is then used to guide GPT-2 (or any other LLM really, i opted for OPT-125 - pun intended) via an auxiliar mapper (a simple transformer that can be extended to more complex projection structure based on the needs) that aligns the visual embeddings to the text one, catching the meaning of the image. If you want to know more about the method, this is the original author post, super interesting.

Basically, It combines CLIP (for visual understanding) with a language model to generate a short description and overlays showing exactly where the model “looked”, and the method itself it's super fast to train and evaluate, because nothing it's trained aside a small mapper (an MLP, a Transformer) which rely on the concept of the Prefix Tuning (A Parameter Efficient Fine Tuning technique).

What i've extended on my work actually, is the following:

  • Auto-labels images using CLIP (no manual labels), then trains a captioner for your domain. This was one of the coolest discovery i've made and will definitely use Contrastive Learning methods to auto label my data in the future.

  • Using another LLM (OPT-125) to generate better, intuitive caption

  • Generates a plain-language defect description.

  • A custom Grad-CAM from scratch based on the ViT-B32 layers, to create heatmaps that justify the decision—per prompt and combined, giving transparent and explainable choice visual cues.

  • Runs in a simple Gradio Web App for quick trials.

  • Much more in regard of the entire project structure/architecture.

Why it matters? In my Master Thesis scenario, i had those goals:

  • Rapid bootstrapping without hand labels: I had the "exquisite" job to collect and label the data. Luckily enough, i've found a super interesting way to automate the process.

  • Visual and textual explanations for the operator: The ultimate goal was to provide visual and textual cues about why the product was defective.

  • Designed for supply chains setting (defect finding, identification, justification), and may be extended to every domain with the appropriate data (in my case, it regards the rotten fruit detection).

The model itself was trained on around 15k of images, taken from Fresh and Rotten Fruits Dataset for Machine-Based Evaluation of Fruit Quality, which presents around ~3200 unique images and 12335 augmented one. Nonentheless the small amount of image the model presents a surprising accuracy.

For anyone interested, this is the Code repository: https://github.com/Asynchronousx/CLIPCap-XAI with more in-depth explanations.

Hopefully, this could help someone with their researches, hobby or whatever else! I'm also happy to answer questions or hear suggestions for improving the model or any sort of feedback.

Following a little demo video for anyone interested (could be also find on the github page if reddit somehow doesn't load it!)

Thank you so much


r/computervision • • Aug 12 '25

Showcase Hand-Controlled Tetris

119 Upvotes

I built a Hand-Controlled Tetris with MediaPipe + Python playable with finger gestures only

I just finished a weekend project: a fully playable Tetris that you control only with your hands, using your webcam and MediaPipe.

Gestures act like buttons:

Move Right → Index finger up

Move Left → Index + Middle up

Rotate → All four fingers up

Soft Drop → Thumb down

At 30 FPS, every “up” frame triggers a move — sometimes 1 cell, sometimes 2–3. I could smooth it out, but honestly, the little bit of chaos makes it more challenging and fun 😄

Code: https://github.com/JAllemand971


r/computervision • • Aug 16 '24

Showcase Test out your punching power

119 Upvotes

r/computervision • • Jan 30 '21

Weblink / Article Roadmap to study Visual-SLAM

118 Upvotes

Hi all,

Recently, I've made a roadmap to study visual-SLAM on Github. This roadmap is an on-going work - so far, I've made a brief guide for 1. an absolute beginner in computer vision, 2. someone who is familiar with computer vision but just getting started SLAM, 3. Monocular Visual-SLAM, and 4. RGB-D SLAM. My goal is to cover the rest of the following areas: stereo-SLAM, VIO/VI-SLAM, collaborative SLAM, Visual-LiDAR fusion, Deep-SLAM / visual localization.

Here's a preview of what you will find in the repository.

Visual-SLAM has been considered as a somewhat niche area, so as a learner I felt there are only so few resources to learn (especially in comparison to deep learning). Learners who use English as a foreign language will find even fewer resources to learn. I've been studying visual-SLAM from 2 years ago, and I felt that I could have struggled less if there was a simple guide showing what's the pre-requisite knowledge to understand visual-SLAM... and then I decided to make it myself. I'm hoping this roadmap will help the students who are interested in visual-slam, but not being able to start studying because they do not know where to start from.

Also, if you think something is wrong in the roadmap, or would like to contribute - please do! This repo is open to contributions.

On a side note, this is my first post in this subreddit. I've read the rules - but if I am violating any rules by accident, please let me know and I'll promptly fix it.


r/computervision • • Jul 22 '24

Showcase I trained a model on all Tiktok virtual gifts and their costs to see live stream spending

117 Upvotes

r/computervision • • Jun 07 '24

Research Publication Vision-LSTM is out

117 Upvotes

The founder of LSTM, Sepp Hochreiter, and his team published Vision LSTM with remarkable results. After the recent release of xLSTM for language this is its application in computer vision.

Paper: https://arxiv.org/abs/2406.04303 GitHub: https://github.com/nx-ai/vision-lstm


r/computervision • • Jul 22 '20

Weblink / Article The Triton Project is a 3D printed headset that uses off the shelf hardware to achieve advanced augmented reality. The Triton’s mission is to help us better explore the role computer vision and web technology plays in creating compelling AR.

117 Upvotes

r/computervision • • May 15 '20

OpenCV Just with oprncv python cool project using which you can write in air

117 Upvotes

r/computervision • • May 13 '20

Weblink / Article [P] Nifty Online Tool Animates Your Actions in Real-Time

117 Upvotes