小编Tan*_*and的帖子

Android中的实时面部检测

我正在尝试使用Android中的相机预览实现面部检测.有人知道任何(开源)库可以帮助我这样做吗?

android computer-vision

4
推荐指数
1
解决办法
3127
查看次数

如何将 Tailwind CSS 与 Yew 一起使用?

我尝试按照https://dev.to/arctic_hen7/how-to-set-up-tailwind-css-with-yew-and-trunk-il9中描述的步骤在 Yew 中使用 Tailwind CSS,但是它不起作用。

我的测试项目文件夹:

在此输入图像描述

货物.toml:

[package]
name = "yew-tailwind-app"
version = "0.1.0"
edition = "2021"

[dependencies]
yew = { version = "0.19" }
Run Code Online (Sandbox Code Playgroud)

索引.html:

<!DOCTYPE html>
<html lang="en">
    <head>
        <link data-trunk href="./tailwind.css" rel="css" />
    </head>

    <body>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

main.rs中的代码:

use yew::prelude::*;

#[function_component(App)]
fn app() -> Html {
    html! {
        <>
            <h1>{ "Hello World" }</h1>
            <p class={ classes!("bg-red-500") }>{"Test!"}</p>
        </>
    }
}

fn main() {
    yew::start_app::<App>();
}
Run Code Online (Sandbox Code Playgroud)

但我在“测试!”中没有看到红色背景颜色。你能帮我吗?

在此输入图像描述

rust tailwind-css yew trunk-rs

4
推荐指数
2
解决办法
4433
查看次数

标签 统计

android ×1

computer-vision ×1

rust ×1

tailwind-css ×1

trunk-rs ×1

yew ×1