import { Group, Panel, jsx, Color, layoutConfig, Image, Scroller, VLayout, Text, Gravity, createRef, loge, ViewComponent, HLayout, } from "doric"; import { binarization, extractGrayValue, fastBlur, gaussianBlur, ostu, vampix, } from "./imageUtils"; import { colors } from "./utils"; @ViewComponent export class Label extends Text { constructor() { super(); this.width = 100; this.height = 40; this.backgroundColor = colors[1]; this.textColor = Color.WHITE; this.textSize = 20; } } @Entry export class ImageProcessorDemo extends Panel { build(root: Group): void { const iv = createRef(); // const imageUrl = "https://doric.pub/about/The_Parthenon_in_Athens.jpg"; const imageUrl = "https://img-blog.csdn.net/20181022194542112?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzA0NjY1Mw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70"; //"https://doric.pub/logo.png"; 图片处理 简单 模糊 二值化 ; } }