frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

15-HarmonyOS5-VisionKit-DocumentScanner-Case

1•zhousg•3h ago
Case Study of Document Scanner in VisionKit on HarmonyOS 5.0 Abstract This article introduces how to use @hms.ai.DocumentScanner to implement the document scanning function in HarmonyOS 5.0. By creating the VisionKitDocumentScanner component, users can perform document scanning and display the scanning results.

import { router } from '@kit.ArkUI' import { DocumentScanner, DocumentScannerConfig } from '@hms.ai.DocumentScanner'

@Entry @Component struct VisionKitDocumentScanner { @State docImageUris: string[] = [] private docScanConfig = new DocumentScannerConfig()

  aboutToAppear(): void { 
    this.docScanConfig.maxShotCount = 3 
  } 

  build() { 
    Stack({ alignContent: Alignment.Top }) { 
      Swiper() { 
        ForEach(this.docImageUris, (uri: string) => { 
          Image(uri) 
            .objectFit(ImageFit.Contain) 
            .width(100) 
            .height(100) 
        }) 
      } 
      .padding(15) 
      .width('100%') 
      .height('100%') 

      // Document scanning 
      DocumentScanner({ 
        scannerConfig: this.docScanConfig, 
        onResult: (code, saveType, uris) => { 
          if (code === -1) { 
            router.back() 
          } 
          this.docImageUris = uris 
        } 
      }) 
    } 
    .height('100%') 
    .width('100%') 
  } 
}

The "Bath Tub" Curve Explained

https://accendoreliability.com/the-bath-tub-curve-explained/
1•stacktrust•39s ago•0 comments

New method can teach AI to admit uncertainty

https://techxplore.com/news/2025-06-method-ai-uncertainty.html
1•vinnyglennon•1m ago•0 comments

Show HN: IndexChecker – Never lose your organic traffic again

https://indexchecker.ai/
1•desaikush•3m ago•0 comments

America's older population is growing as its younger cohort shrinks

https://www.axios.com/2025/06/26/america-older-younger-population
2•toomuchtodo•4m ago•0 comments

Durable, multi-player pseudo-terminal

https://github.com/sgbalogh/s2.term
1•shikhar•6m ago•0 comments

'Microbial Noah's Ark' ramps up to save Earth's invisible life forms

https://phys.org/news/2025-06-microbial-noah-ark-ramps-earth.html
1•pseudolus•7m ago•0 comments

Show HN: NVIWatch – GPU monitoring with InfluxDB streaming for observability

https://github.com/msminhas93/nviwatch
1•msminhas•9m ago•0 comments

Remote log implementation for XTDB using s2.dev

https://github.com/chucklehead-dev/s2-log
1•shikhar•9m ago•1 comments

I built an account sharing web for saving money on subscriptions

https://share-accounts.com
1•gioser•11m ago•0 comments

Pill Promises to Give Your Dog More Years

https://slate.com/technology/2025/04/dogs-pets-pill-longevity-extend-lifespan-loyal-veterinary-ethics.html
2•amichail•11m ago•0 comments

Web-Based Config Interface for Claude Code, Codex, Gemini CLI

https://github.com/snowfort-ai/config
2•clharman•13m ago•0 comments

Self-Improving CLI Agents in 5 minutes

https://colinharman.substack.com/p/self-improving-ai-coding-agents-in
2•clharman•14m ago•0 comments

How Two Neuroscientists View Optical Illusions

https://www.nytimes.com/2025/06/26/science/neuroscience-brain-illusions.html
1•mitchbob•15m ago•1 comments

Bluetooth Zero-Day Turns Headphones into Surveillance Devices

https://cyberinsider.com/bluetooth-zero-day-turns-millions-of-headphones-into-surveillance-devices/
1•heavyset_go•17m ago•0 comments

How Questions Build Software

https://akdev.blog/how-questions-build-software
1•aksappy•18m ago•0 comments

Comparing cooperative geometric puzzle solving in ants versus humans

https://www.pnas.org/doi/10.1073/pnas.2414274121
1•coloneltcb•19m ago•0 comments

Richard Feldman on new language adoption in the LLM age

https://www.youtube.com/watch?v=ZsBHc-J9f8o
1•todsacerdoti•19m ago•0 comments

Fears of "Overblocking" Unite Critics of U.S. Pirate Site Blocking Bill

https://torrentfreak.com/fears-of-overblocking-unite-critics-of-u-s-pirate-site-blocking-bill/
1•gslin•20m ago•0 comments

Show HN: I built a professional portfolio you can chat with using an LLM

https://vishalbakshi.github.io/blog/posts/2025-06-26-portfolio-llm/
1•vishalbakshi•20m ago•1 comments

There's no international protocol on what to do if an asteroid strikes Earth

https://www.theregister.com/2025/06/27/mps_space_asteroid_strike/
1•rntn•26m ago•2 comments

Show HN: A game from LinkedIn zip game

https://zipgame.net
1•lyl_003•29m ago•0 comments

Brother Printer Bug in 689 Models Exposes Millions to Hacking

https://hardware.slashdot.org/story/25/06/26/2351234/brother-printer-bug-in-689-models-exposes-millions-to-hacking
3•fchicken•29m ago•0 comments

Robotic tongue drummer bangs out all the ambient hits

https://blog.arduino.cc/2025/06/07/this-robotic-tongue-drummer-bangs-out-all-the-ambient-hits/
1•PaulHoule•32m ago•0 comments

China's New Army of Engineers

https://www.economist.com/china/2025/06/26/chinas-new-army-of-engineers
2•bookofjoe•34m ago•1 comments

Biocubes: A visual story of the living and the built

https://biocubes.net/
1•gmays•34m ago•0 comments

A practical guide to navigating compensation and promotion

https://blog.incrementalforgetting.tech/p/know-your-worth
1•mooreds•37m ago•0 comments

Generating Code and Content with AI

https://medium.com/cloud-security/artificial-intelligence-2e97415216c0
1•mooreds•39m ago•0 comments

A Beauty Cold and Austere (2017)

https://iplayif.com/?story=https%3A%2F%2Fgithub.com%2Fmzspivey%2FA-Beauty-Cold-and-Austere%2Fraw%2Fmaster%2FABCA5.gblorb
1•kqr•39m ago•0 comments

Lovely Tensors

https://xl0.github.io/lovely-tensors/
1•mooreds•42m ago•0 comments

The Plan to Re-Freeze the Arctic

https://thenarwhal.ca/real-ice-cambridge-bay-nunavut/
1•HR01•42m ago•0 comments