6 comments

  • ftchd 1 hour ago
    > One practical detail is worth knowing. The new engine is CPU-only at the moment, so if you select a non-CPU backend and target (for example CUDA or OpenVINO through setPreferableBackend and setPreferableTarget), you will want the classic engine.

    So there's room for even better performance!

    • wongarsu 1 hour ago
      It's certainly a choice to make your headline feature a new ONNX engine, feature a bunch of comparisons how it's better than ONNX Runtime, while casually mentioning on the side that the cool new much faster engine is CPU-only

      Sure, running models on the CPU is very much a thing in computer vision (the benchmarked YOLOv8n has 37M params). But this whole announcement feels more like OpenCV catching up to the modern world, not "The Biggest Leap in Years for Computer Vision"

      Still great, needing fewer libraries is a good thing, but maybe a bit oversold

      • VadimPR 18 minutes ago
        The release post is AI-written with little human oversight and it shows.
    • nnevatie 47 minutes ago
      No one uses ONNXRuntime (nor the new engine in OpenCV 5) in production. For anything performance-sensitive, one would run models under TensorRT, as an example.
      • snovv_crash 13 minutes ago
        Strong statement to make when I have at least 2 datapoints contradicting it, in SaaS and embedded/robotics.
      • gunalx 25 minutes ago
        Production dosent have to be performance sensitive, so devex may still outcompete the performance differences in some scenarios.
  • oliveiracwb 17 minutes ago
    Computer vision was the formative school for many autodidacts. Although I acquired substantial knowledge from articles translated via Power Translator and Babylon (whose outputs closely mirror those of any 2-million-parameter SLM), it was OpenCV that made concepts like convolutions, softmax, minmax, and others finally click for me. I have consistently viewed OpenCV as an intrinsically open, educational, and adaptable library. Any developer can dissect its codebase to extract a specific filter or algorithmic implementation and tailor it to their requirements. It is certainly not cruising at the velocity of trillion-dollar capital. But it holds its altitude. And it will always be there.
  • arcanine 37 minutes ago
    They really improved the performance. I tested yolov8 medium segmentation model on intel i7 11th gen cpu.

    Opencv 4.11 : ~255ms Opencv 5.0.0 : ~185ms

    with the same code.

  • leoncos 3 days ago
    When I use Codex/Claude to complete a computer vision task, such as extracting assets from an image, OpenCV is their default solution. However, I believe that using YOLO and other methods is outdated. The best solution now is to directly use Nano Banana or other AI image models. A paper has proven that image generation models can perform most CV tasks well. I believe the new OpenCV should become a wrapper for VLM or AI image models.
    • nicolailolansen 1 hour ago
      Whenever you can run a model like Nano Banana or other vision-LLM with the same compute and time performance/restrictions as an OpenCV or YOLO call, you can make that comparison. Until then, I would not call YOLO and OpenCV outdated, it's simply wrong. There's a time and place for big V-LLMs just as there is a time and place for more "traditional" computer vision methods.
    • wongarsu 54 minutes ago
      I can get great results from a YOLO model with 30M to maybe 300M params. To get decent CV from a LLM 8B params is the absolute minimum, closer to 30B for interesting tasks

      I might be on board about LLMs being the future of OCR (though many would disagree), but for general CV they are very inefficient for very limited benefit

      • IanCal 35 minutes ago
        They can however be extremely useful for curating training data. Also things like SAM and the DINO (/grounding dino) models.

        Also if they are better then you can also have a flow that’s cheap model -> marginal cases go to more complex thing (and a chain of these).

        The yolo models are really shockingly good for their cost and how well they can work with not much training data as well.

    • mirsadm 1 hour ago
      That is a very uninformed view. Real time CV is not going to be doing that anytime soon.
    • sebmellen 44 minutes ago
      Great, let me know when those models can run on-server and process/analyze streams of ID images with less than 100ms of latency. You’ll need to make sure you have a massive set of training data including all manner of slightly blurred and slightly distorted ID cards
    • regularfry 1 hour ago
      I've built hardware with a pi zero 2 + pi cam running a mildly fine-tuned YOLO doing local-only object detection as a USB-OTG device, in a use case where any off-device API calls would have been totally unacceptable, and where the object detection was part of the human interaction loop with a hard ceiling of 300ms on the total interaction time of which the object detection was only one process among many.

      We're not going to fit Nano Banana or anything like it on a device with 512MB RAM and a GPU old enough to be irrelevant, and again, API calls just aren't on the menu.

    • serf 2 days ago
      do you realize how many edge or unconnected nodes do OpenCV work?

      some SBC w/ an industrial camera that is doing pick-place or go/no-go operations on a conveyor belt against a singular object type doesn't need a huge image-gen/llm model governing it.

      I mean have you even considered the kind of performance an opencv function can get w/ just mask-matching? I mean even with a fancy YOLO model these answers get thrown out in 1.5-50ms ; this is just a wholly different time scaling.

    • kryptiskt 57 minutes ago
      If I want to identify and measure the size of round things in my orange sorter machine, I shouldn't have to resort to an unnecessarily complicated solution just because some AI bros can't understand that not everything needs to be an AI model.

      Like, the AI model tools already exist, all that would be accomplished if OpenCV pivoted would be to take it away for people who want to do low-level vision programming. It wouldn't add anything useful to the world, just destroy an excellent library.

    • TZubiri 1 hour ago
      I am confused, how can functions that output images help with functions that should take images as input?
      • taneq 32 minutes ago
        They’re multimodal LLMs trained for image generation. Turns out that if you want to generate images you gotta know what things look like.
  • hbcondo714 2 days ago
    > LLMs and VLMs, Running Inside OpenCV…Qwen 2.5, Gemma 3, PaliGemma, and the GPT-2 / GPT-4 family

    Why these specific models / versions?

  • globalnode 1 hour ago
    does this mean im actually able to try object detection in opencv now? i mean i know basic image processing techniques, and i know "in theory" how ML works but ive never really seen a case where i can just say "heres an image now detect all the apples". theres always 1. find a model that has the knowledge, 2. hook it up to an inference engine, 3. do something useful. i always get stuck at 1.
    • wongarsu 1 hour ago
      YOLO has basically solved that for my use cases for a couple years now. If you want labels that are not in the pretrained labels it's also easy to fine-tune, provided you're willing to label 200 or so images

      If you need something less restricted to existing labels (say wanting all the red apples, or all cardboard signs) SAM3 is great, as the sibling comment says

      • IanCal 33 minutes ago
        > provided you're willing to label 200 or so images

        A quick note to say that this is also a task you can hand to things like gemini.

    • fnands 1 hour ago
      That seems to be the way things are going.

      Large general models have taken over in NLP, and (outside of embedded/low latency applications) it seems like they are coming for CV next.

      So you should soon be able to have large generic model that can detect whatever for you.

      It's already pretty much possible with open-vocabulary detectors like SAM3, where you could just prompt it with "Apple": https://ai.meta.com/research/sam3/

    • shenberg 56 minutes ago
      moondream is a beast