frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

08-HarmonyOS5-SkeletonDetection-Case

1•zhousg•2h ago
Summary This article mainly introduces a case of implementing skeleton detection using the ArkTS language in HarmonyOS 5.0. By using visionBase and skeletonDetector, the detection of skeletal key points is performed. Meanwhile, the confidence threshold is lowered to enhance the flexibility of detection.

Implementation Steps Define the request object. Call the skeleton detection processing method. Extract key point data. Obtain specific key points based on their types.

Implementation Code

1. Define the Request Object

const request: visionBase.Request = { inputData: { pixelMap } }

2. Call the Skeleton Detection Processing Method

const data = await skeletonDetector.process(request)

3. Extract Key Point Data

const points = data.skeletons[0].points

4. Lower the Confidence Threshold and Define the Method to Obtain Key Points

const MIN_CONFIDENCE = 0.3; // Lower the confidence threshold const getPoint = (type: skeletonDetection.SkeletonPointType) => points.find(p => p.type === type && p.score >= MIN_CONFIDENCE)?.point;

5. Obtain Specific Key Points

// Obtain key points (prefer the nose, then the ears) const nose = getPoint(skeletonDetection.SkeletonPointType.NOSE); const leftShoulder = getPoint(skeletonDetection.SkeletonPointType.LEFT_SHOULDER); const rightShoulder = getPoint(skeletonDetection.SkeletonPointType.RIGHT_SHOULDER); let leftEar = getPoint(skeletonDetection.SkeletonPointType.LEFT_EAR); let rightEar = getPoint(skeletonDetection.SkeletonPointType.RIGHT_EAR);

Conclusion

The key knowledge point of this case lies in how to perform skeleton detection using the ArkTS language in HarmonyOS 5.0. By defining the request object, calling the processing method, and extracting key point data, the basic skeleton detection function is implemented. At the same time, lowering the confidence threshold can enhance the flexibility of detection to some extent, making the detection results more in line with actual requirements.

Microsoft 365 Copilot Experiment: Cross-Government Findings Report

https://www.gov.uk/government/publications/microsoft-365-copilot-experiment-cross-government-findings-report/microsoft-365-copilot-experiment-cross-government-findings-report-html
1•edent•43s ago•0 comments

Middleman Minority

https://en.wikipedia.org/wiki/Middleman_minority
1•stein1946•1m ago•0 comments

Show HN: Open-source ETL for RDFa annotated websites

https://bittich.be/projects/swarm/
1•nbittich•5m ago•0 comments

Blocking stolen phones from the cloud can be done, should be done, won't be done

https://www.theregister.com/2025/06/09/opinion_column_blocking/
2•bishopsmother•8m ago•0 comments

Deliberate Intentional Practice (For AI)

https://ghuntley.com/play/
1•myflash13•8m ago•0 comments

Google Flow TV

https://labs.google/flow/tv/channel/postcards-from-space/myRdRp4tRTMeZlRuJC3A?random=true
1•mihau•11m ago•0 comments

Harassment of athletes by angry gamblers is rising

https://www.cnn.com/2025/06/09/sport/athlete-abuse-betting-sport-intl
2•Tomte•14m ago•0 comments

I built a knowledge system that gives AI perfect codebase memory

https://github.com/Muvon/octocode
3•donhardman•15m ago•2 comments

Chap claims Atari 2600 "absolutely wrecked" ChatGPT at chess

https://www.theregister.com/2025/06/09/atari_vs_chatgpt_chess/
2•mdp2021•17m ago•0 comments

Childhood leukemia: how a deadly cancer became treatable

https://ourworldindata.org/childhood-leukemia-treatment-history
1•dionysou•18m ago•0 comments

YouTube Loosens Video Content Moderation Rules

https://www.nytimes.com/2025/06/09/technology/youtube-videos-content-moderation.html
2•reaperducer•19m ago•0 comments

First Map Made of a Solid's Quantum Geometry

https://www.quantamagazine.org/first-map-made-of-a-solids-secret-quantum-geometry-20250606/
1•nsoonhui•21m ago•0 comments

Learning German: A Two-Way Street for International Professionals and Companies

https://germancareer.substack.com/p/learning-german-a-two-way-street
1•rustoo•25m ago•0 comments

Show HN: Visualize nested list properties in the CodeLLDB debugger

https://github.com/ahrm/codelldb-visualizers
1•hexomancer•29m ago•0 comments

Self-Powered Artificial Synapse Mimics Human Color Vision

https://www.tus.ac.jp/en/mediarelations/archive/20250528_9424.html
1•rustoo•30m ago•0 comments

Code development platform for open source projects by the EU

https://code.europa.eu/info/about/-/blob/master/README.md
2•doener•30m ago•0 comments

Djgpp

https://www.delorie.com/djgpp/
2•BruceEel•34m ago•0 comments

I Program with Agents

https://sketch.dev/blog/programming-with-agents
1•weinzierl•35m ago•0 comments

Nvidia VA-API Driver 0.0.14 Improves Compatibility and Fixes Various Issues

https://www.phoronix.com/news/NVIDIA-VAAPI-Driver-0.0.14
1•doener•36m ago•0 comments

EU OS for the Public Sector

https://eu-os.eu/
21•doener•37m ago•6 comments

Life and Insecurities

https://www.jerry.wtf/posts/life-and-insecurities/
1•personjerry•38m ago•0 comments

In praise of Japanese small, Hokkaido as Wisconsin, and pachinko memories

https://walkingtheworld.substack.com/p/in-praise-of-japanese-small-hokkaido
1•Michelangelo11•39m ago•0 comments

Tim Bray's AI Angst

https://www.tbray.org/ongoing/When/202x/2025/06/06/My-AI-Angst
2•AndrewDucker•40m ago•0 comments

Show HN: SDFY: Fast 2D Vector Shapes and Shadows with Signed Distance Functions

https://github.com/elcritch/sdfy
2•elcritch•46m ago•0 comments

We came to be ruled by Death Eaters (2014)

https://georgiebc.wordpress.com/2014/12/05/how-we-came-to-be-ruled-by-death-eaters/
2•rendx•48m ago•0 comments

Congress Passes Socialized Medicine and Mandates Health Insurance -In 1798

https://www.forbes.com/sites/rickungar/2011/01/17/congress-passes-socialized-medicine-and-mandates-health-insurance-in-1798/
4•Bluestein•48m ago•0 comments

AI plundering scripts poses 'direct threat' to UK screen sector, says BFI

https://www.theguardian.com/technology/2025/jun/09/ai-plundering-scripts-poses-direct-threat-to-uk-screen-sector-says-bfi
1•chrisjj•49m ago•0 comments

How YouTube Golf Is Driving Acushnet's Sales

https://jackdry.com/search-interest-indicates-8-q2-sales-growth-for-acushnet
2•jdry1729•56m ago•0 comments

What DOGE and its affiliates are doing with government systems and data [pdf]

https://oversight.house.gov/wp-content/uploads/2025/06/Schneier-Written-Testimony.pdf
3•ripe•57m ago•0 comments

Show HN: A feature-rich, efficient and flexible image compression application

https://github.com/AkiraBit/PicSharp
2•AkiraBit•57m ago•0 comments