17 comments

  • postalcoder7 hours ago
    Since this is for the mac you really should be using apple&#x27;s vision framework for OCR. It smokes tesseract in both speed and accuracy.<p>Edit: I&#x27;m curious which LLM was used to generate the code. I fed the title of your post to claude&#x2F;deepseek&#x2F;qwen&#x2F;codex asking to recommend a stack for this project, expecting to frown thinking that they still recommend tesseract. However, I found that they all recommend apple&#x27;s vision framework. In fact the latest model to recommend Tesseract is gpt-4.1.
    • vavkamil5 hours ago
      I recently tried to recover text from 8 frames of an office-shot YouTube video, where only a small, blurry portion of a computer screen was visible. After spending half a day with Astra on it, the conclusion was that it’s not possible to read.<p>Later that evening, I just paused the YouTube video on my phone, circled the part of the display with Google Lens, and it read the whole thing with pretty good accuracy. It was mindblowing :)
      • sheept1 hour ago
        All those years of captchas must&#x27;ve made Google&#x27;s model bulletproof
    • robotmay5 hours ago
      Mostly unrelated but fun thing I discovered earlier this year with Apple&#x27;s vision - if you have text both correctly oriented and upside down in the same image, it likes to interpret the upside down text as a Cyrillic alphabet. I was trying to use it to read the text on camera lenses and it came up with all sorts of bizarre interpretations. If anyone&#x27;s interested, I got around it by splitting the text at a point and unrolling it into a straight line before running OCR on it.
    • darepublic3 hours ago
      My own experiments with tesseract were very mixed. I did use just a locally runnable version from a public repository. Text from webpages. Sometimes it would do great but small variations could make it fail completely. Paddleocr on single line text for me has accuracy in the range of 95%
    • schainks1 hour ago
      This. Learn all the knobs and dials, too. Useful performance gains to be made by tuning the right settings.
    • WokeUp4201 hour ago
      Turns out it&#x27;s possible to build something without a glorified next-character search engine afterall
    • spiderfarmer6 hours ago
      So the prompt was probably something like: build me x using Tesseract.
    • daveguy6 hours ago
      nullsanity got downvoted into oblivion, but they are correct. This is one of the many reasons why vibe coding produces worse software. The code that is generated and the best practice recommendations are completely separate. They both come from a distribution of &quot;most common&quot;, and best practice is rarely common. Especially when a practice is first established, or in a specific niche.
      • thih96 hours ago
        Unless you are referencing some existing non vibe coded app, complaints the project being vibe coded may be just too generic at this point.<p>A hand coded electron project would have a discussion about electron vs native. Relevant in general but off topic in the context of this particular app.
      • WokeUp4201 hour ago
        Kind of like &quot;history is written by the victors&quot;
      • losteric3 hours ago
        idk about that. The big labs and their data providers are spending millions of dollars building up expert datasets. I was offered $120&#x2F;hr to critique outputs and provide my own designs. Thats clean and high quality data, not the average internet word distribution
      • baxtr5 hours ago
        Maybe the real question is: who cares?<p>What’s the downside risk of having &quot;worse software&quot; when you’re just ideating and putting things out there to see how people like it.
        • Someone2 hours ago
          Your idea can be great, but if the implementing is bad, people still may not like it, and you’ll never know that’s the cause.
          • daveguy2 hours ago
            And manager types in software still haven&#x27;t figured out that prototypes should not be the final product. In engineering it&#x27;s common knowledge and only rarely do you take a proof of concept directly to production.
      • xp846 hours ago
        Isn’t that why you use a plan mode? Or better, use a plan mode, revise and critique the plan, and then let it proceed to build?
      • spiderfarmer6 hours ago
        On the flipside, it also leads to better software.
    • allenleee5 hours ago
      Hey author here! :) Great point.<p>You&#x27;re totally right. Apple Vision is generally way faster and more accurate on Apple Silicon. Pure Mac-only, I&#x27;d use it. (also smaller)<p>Main reason I went Tesseract: I want SCM to stay portable easily. It&#x27;s ARM Mac for now, but the inference layer is all JS end-to-end — Transformers.js + ONNX for CLIP&#x2F;SigLIP + Whisper, Tesseract.js WASM for OCR, all in plain Node workers.<p>A bit of background: I&#x27;m actually an iOS&#x2F;macOS dev and I really love SwiftUI and AppKit — I just wanted v1 to stay portable by construction. Exploring a native Swift + MLX v2 track separately for speed.
      • novok1 hour ago
        If you look at the apple photos db you&#x27;ll see that there is a bunch of cached pre-analysis you can leverage for items in apple photos.
    • nullsanity6 hours ago
      And this is why vibe coders always make inferior software.
  • alt2277 hours ago
    Slightly offtopic, but made me wonder.<p>Can you copyright things like this now that LLMs exist? I mean, up until now if a small startup has a great idea they will get bought out by big tech which will integrate (or kill) their tech. But now with LLMs can the likes of OpenAI just tell their model to make something that works similar to X (such as this project) and then get round copying laws and negate being behind the curve?<p>EDIT: switched to the correct spelling of copyright.
    • tough7 hours ago
      copywriting is the art of writing copy for products&#x2F;marketing maybe you were thinking of sherlocking [1]<p>1. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34080326">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34080326</a>
      • seemaze6 hours ago
        I sure the intended word was copyright[0], as in to protect against getting sherlocked.<p>[0]<a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Copyright" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Copyright</a>
        • robotresearcher3 hours ago
          Copyrights protect the literal text of your program and binaries. Not the design and functionality. Getting Sherlocked is having your functionality duplicated, independent of the code itself.<p>No one thinks Apple violated Sherlock copyright. They just made it (nearly) functionally redundant.
    • 1010086 hours ago
      I don&#x27;t see why LLMs should make the legal part different. It&#x27;s like saying if you can copyright a book considering LLMs now can copy &#x2F; write a new one in just one hour. Making it faster doesn&#x27;t change the legal aspect &#x2F; ownership of something.
    • modzu5 hours ago
      ianal but copyright law has nothing to say about being sherlocked. it&#x27;s happening - virtually any software you can think of has some shit slop clone out there already
    • allenleee5 hours ago
      [flagged]
  • lucideer8 hours ago
    possibly off-topic, but for anyone interested in this on a more cross-platform &#x2F; holistic basis, Immich does this<p>(&amp; by &quot;this&quot; I mean an approximate AI search for photos &amp; videos - I can&#x27;t account for the &quot;every frame&quot;, nor for the comparative search quality)
    • mannyv4 hours ago
      Tried immich and there was a lot not to like. It behooves everyone to try each one and see if it fits.<p>Just for product aesthetics, i believe it created a thumbnail folder with every resolution, which is annoying since i have a multi-decade 8tb library.<p>There were other actual issues with organization and display. But with this I realized I can just get gemini to write a DAM for me in a weekend.
      • lucideer2 hours ago
        Caching &amp; overall library directory structures are configurable fwiw. I find the mobile integrations to be the biggest differentiators.
        • mannyv2 hours ago
          I understand why it did what it did, but I didn&#x27;t want to spend the time digging in and changing its behavior.<p>The view options are what killed it in the end.<p>The thumbnails issue was just me looking at the sausage and like &quot;ugh, I wouldn&#x27;t have done that.&quot;<p>It&#x27;s always a tradeoff between time and work. I would have done a sliding window around the current screen, but then you might have placeholders. Maybe it should do low-res first and generated hi-res thumbnails 3 pages out while scrolling. But that&#x27;s a lot of work for the 10% case.<p>What I want is aperture back, with all the fun AI stuff and using Affinity for photo editing (which I have anyway). I&#x27;ll add that to my queue of projects I guess.
  • yt19987 hours ago
    Why chose CLIP to do this. Have you tried small VLMs like Qwen-VL? I believe those models have video encoders can better perform at this scenario.
    • radicality3 hours ago
      Not OP, but probably because they have no idea what they are doing or what CLIP even is. And the whole thing is likely just from one llm prompt, and then they dumped the whole thing onto GitHub, undoubtedly without even looking at any of the code or architecture.<p>And then you end up with image metadata processing code like this, which just by a cursory glance I’m sure has edge case bugs : <a href="https:&#x2F;&#x2F;github.com&#x2F;allenv0&#x2F;SCM&#x2F;blob&#x2F;main&#x2F;screenshot-probe.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;allenv0&#x2F;SCM&#x2F;blob&#x2F;main&#x2F;screenshot-probe.js</a>
    • allenleee4 hours ago
      [flagged]
  • hn3ufz62f78 hours ago
    Having built something similar with CLIP on an M1, frame sampling rate is the whole ballgame. One frame a second on 12k videos is days, keyframes only got me to an overnight run.
    • pezgordo7 hours ago
      Maybe you need a minimal downscale version as well, I heard is very common technique in the video editing world.<p>Based on my experience, sampling rate can be tricky if what you are looking for lasted less than interval period.
      • Forgeties796 hours ago
        Proxies. You transcode proxies from the original media, edit off those, then you use OM for the final render. NLE’s usually let you flip between them.
    • xnx8 hours ago
      Have you tried scene detection? I would guess camera cuts are even less frequent than keyframes.
    • mistrial97 hours ago
      &gt; 12k videos ?<p>you are pirating first-release movies for commercial purposes?
      • Hnrobert426 hours ago
        I think 12K is quantity not resolution.
        • whilenot-dev4 hours ago
          Such a tool is very helpful for editors who manage video footage, and since 12K cameras are affordable now, I&#x27;d guess 12K actually refers to the resolution here.
    • allenleee3 hours ago
      [flagged]
  • measure2xcut1x8 hours ago
    How well do you think this would work on stock photography on m1 mac with 32GB ram? For example I&#x27;d like to be able to search a folder of ~2k photos for houses with palm trees. Or find photos of kitchens, or find photos of desert southwest landscapes.
    • allenleee1 hour ago
      YES! I can confirm it works perfectly on M1&#x2F;M2&#x2F;M3 machines (16g&#x2F;64g).
    • tredre33 hours ago
      Apple Photos can already search photos with natural language using on-device AI. Is it not working well for you?
      • measure2xcut1x3 hours ago
        Thanks for suggesting this. I have not tried it because the photos are on an external SMB network drive.
  • hemedanmert3 hours ago
    This is so cool! it could be really beneficial for editors<p>isnt it expensive tho?
    • allenleee2 hours ago
      Thank you :) It&#x27;s 100% free and open source!
  • qlasisi155 hours ago
    This would really help in video editing. Thanks!
  • stephenitis9 hours ago
    I like the entire premise, the one thing stopping me from trying this is not knowing the time scales that I will need to set my computer aside for the processing of large folders of video frames, or my photos library&#x27;s videos, some 12,000 videos
  • cpursley7 hours ago
    Why is this a JS bloatware instead of native or Rust which is easier than ever now with LLM coding tools.
    • collingreen6 hours ago
      Because you haven&#x27;t rereleased your own fork in rust yet! The &quot;LLMs can do it&quot; cuts both ways. If that doesn&#x27;t sound worth your time then it&#x27;s silly to rudely suggest it is worth someone else&#x27;s.
      • cpursley5 hours ago
        Fair enough, but seriously, my machine has taken a beating by all these JavaScript and electron thingies.
        • collingreen8 minutes ago
          I totally agree and I&#x27;m guilty of producing some electron crap. I think the ai explosion can be greatly improved by a new easy-for-ai but high performance and consistent ui paradigm. Would love to see a &quot;what would html look like if it was designed for apps instead of documents from the first day&quot; become really popular with the ai models without becoming too hard to read.<p>Tall order but would love to get my cpu back!
  • qprofyeh8 hours ago
    This is cool. Any way to search for People &#x2F; faces &#x2F; pets? Like on iOS?
  • aavisangle8 hours ago
    How do you do that? What&#x27;s the architecture? Can you guide on that?
  • freecodeio7 hours ago
    would be lovely if picture embeddings were attached to the file by the camera but one can only dream of such futures
    • collingreen6 hours ago
      Would require you to be locked in to the one embedding model in the camera though and cameras would need to use the same or be incompatible. Would be fine with a standard model like CLIP but would leave a lot of potential on the table compared to a good way to do your own embedding for everything.
  • Jeeetendra6 hours ago
    jumping straight to the right moment in a video is the useful bit here. how often does the balanced sampling miss something that only appears for a second or two?
  • doubleorseven4 hours ago
    how long does it takes for a FHD 90 minutes asset?
  • mannanj5 hours ago
    its a cool project, but I dont want to consume someones ai slop to discern whats true. if the human wrote the page in their own words, I would have considered using it.<p>otherwise, I can just make my own with my own ai. why consume someones slop when I can eat my own.