frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

16-HarmonyOS5-VisionKit-VisionImageAnalyzer-Case

2•zhousg•3h ago
Case Study of Vision Image Analyzer in VisionKit on HarmonyOS 5.0 Abstract This article introduces how to use visionImageAnalyzer from @kit.VisionKit to implement image text analysis in HarmonyOS 5.0. By creating the VisionKitVisionImageAnalyzer component, users can perform text analysis on specified images and display all the text and the selected text.

import { visionImageAnalyzer } from '@kit.VisionKit'

@Entry @Component struct VisionKitVisionImageAnalyzer { aiController = new visionImageAnalyzer.VisionImageAnalyzerController() @State text: string = '' @State selectedText: string = ''

  aboutToAppear(): void { 
    this.aiController.on('textAnalysis', (text) => { 
      this.text = text 
    }) 
    this.aiController.on('selectedTextChange', (selectedText) => { 
      this.selectedText = selectedText 
    }) 
  } 

  build() { 
    Column({ space: 15 }) { 
      Image(' `https://inews.gtimg.com/om_ls/O3W2Lv10CTyLNHOjw4k_Co1Kkb2-c42GHWvifzD-ka5OYAA_294195/0` ', { 
        types: [ImageAnalyzerType.TEXT], 
        aiController: this.aiController 
      }) 
        .enableAnalyzer(true) 
        .objectFit(ImageFit.Contain) 
        .width(300) 
        .height(300) 
      Text('All text: ' + this.text) 
      Text('Selected text: ' + this.selectedText) 
    } 
    .alignItems(HorizontalAlign.Start) 
    .padding(15) 
    .height('100%') 
    .width('100%') 
  } 
}

Show HN: Syft – Check if an Instagram page is legit before you pay

https://gosyft.com/demo
2•gavinships•2m ago•0 comments

Show HN: I'm an airline pilot – I built interactive graphs/globes of my flights

https://jameshard.ing/pilot
7•jamesharding•4m ago•0 comments

A Comprehensive List of Top AI Image Tools 2025

https://aiex.me/top-ai-image-tools
2•zack119•4m ago•0 comments

Android Workgroup for Swift

https://www.swift.org/android-workgroup/
2•subset•5m ago•0 comments

Future Pixel phones might not meet requirements for GrapheneOS

https://twitter.com/GrapheneOS/status/1933177989480456365
1•gasull•7m ago•0 comments

The Effect of Noise on Sleep

https://www.empirical.health/blog/effect-of-noise-on-sleep/
2•brandonb•7m ago•0 comments

Google is phasing out support for ClaimReview markup in Google Search.

https://developers.google.com/search/blog/2025/06/simplifying-search-results
1•shankysingh•8m ago•1 comments

Orange Me2eets:We made an end-to-end encrypted video calling app and it was easy

https://blog.cloudflare.com/orange-me2eets-we-made-an-end-to-end-encrypted-video-calling-app-and-it-was/
2•doomrobo•10m ago•0 comments

Career Counseling with Anastasia Gamick [video]

https://www.youtube.com/watch?v=uPBRezeyptM
2•surprisetalk•12m ago•0 comments

VMware perpetual license holder receives audit letter from Broadcom

https://arstechnica.com/information-technology/2025/06/vmware-perpetual-license-holder-receives-audit-letter-from-broadcom/
2•nobody9999•13m ago•0 comments

Web Numbers

https://ar.al/2025/06/25/web-numbers/
1•surprisetalk•15m ago•0 comments

Show HN: DevMatter – A simple form API for developers

https://devmatter.app
1•adityavinodh•16m ago•0 comments

UK Fintech Giant Revolut to Acquire BNP's Bank in Argentina

https://www.bloomberg.com/news/articles/2025-06-26/uk-fintech-giant-revolut-to-acquire-bnp-s-cetelem-in-argentina
3•wslh•16m ago•1 comments

Why Are Homes in Western US States So Expensive?

https://www.construction-physics.com/p/why-are-homes-in-western-states-so
4•surprisetalk•18m ago•0 comments

Hosting Website on Phone

https://rohanrd.xyz/posts/hosting-website-on-phone/~
1•quaintdev•19m ago•0 comments

The network is indeed trying to become the computer

https://www.theregister.com/2025/06/27/analysis_network_computing/
2•rntn•21m ago•0 comments

Fair(er) DRM GPU Scheduler

https://blogs.igalia.com/tursulin/fair-er-drm-gpu-scheduler/
1•mariuz•23m ago•0 comments

Financial Accounting

https://docs.tigerbeetle.com/coding/financial-accounting/
1•brson•25m ago•1 comments

Notes on AI and Writing

https://jasmi.news/p/32-notes-on-ai-and-writing
1•surprisetalk•28m ago•0 comments

Build and launch AI Assistants mobile apps

https://www.bravostudio.app/build-ai-assistant-app
1•petercod•30m ago•0 comments

New project to pioneer the principles of human genome synthesis

https://wellcome.org/news/new-project-pioneer-principles-human-genome-synthesis
2•sohkamyung•31m ago•0 comments

The Power and Beauty of Incrementalism

https://supernuclear.substack.com/p/the-power-and-beauty-of-incrementalism
2•surprisetalk•31m ago•0 comments

Using the Internet Without IPv4 Connectivity (WireGuard and Network Namespaces)

https://jamesmcm.github.io/blog/no-ipv4/
2•GardenLetter27•31m ago•0 comments

Natural Language Database Interaction in the Internet of Battlefield Things

https://arxiv.org/abs/2506.06396
1•PaulHoule•31m ago•0 comments

The Age of Integrity

https://www.schneier.com/blog/archives/2025/06/the-age-of-integrity.html
2•ColinWright•32m ago•0 comments

Scientists discover unknown organelle inside our cells

https://phys.org/news/2025-06-scientists-unknown-organelle-cells.html
2•mhb•33m ago•0 comments

Omarchy Is Out

https://world.hey.com/dhh/omarchy-is-out-4666dd31
1•robenkleene•34m ago•0 comments

LLM Speedrunner: Eval for frontier models to reproduce scientific findings

https://github.com/facebookresearch/llm-speedrunner
1•zerojames•36m ago•0 comments

Show HN: A Python Language Server, Mypy-compatible

https://zubanls.com/
20•davidhalter•37m ago•1 comments

Creating a pan-European legal entity, the right way

https://klinger.io/posts/eu-inc
19•whyoh•37m ago•8 comments