Skip to main content

yolo-flet

YoloFlet control for Flet

Installation

Add dependency to pyproject.toml of your Flet app:

  • Git dependency

Link to git repository:

dependencies = [
  "yolo-flet @ git+https://github.com/yst-one/yolo_flet",
  "flet>=0.85.3",
]
  • uv/pip dependency

If the package is published on pypi.org:

dependencies = [
  "yolo-flet",
  "flet>=0.85.3",
]

Build your app:

flet build apk -v

Documentation

async def main(page: ft.Page):
    page.vertical_alignment = ft.MainAxisAlignment.CENTER
    page.horizontal_alignment = ft.CrossAxisAlignment.CENTER

    yolo_flet = YoloService(src=str(fp))
    page.services.append(yolo_flet)


    async def detect() :
        log.debug("/。。。。。。。。。。开始识别中。。。。。。。。。。")


        with open(default_assets_dir / "test.jpg", "rb") as f:

            image_bytes = f.read()
            for i in range(100):
                start = time.time()
                a:list[types.DetectionResult] =await yolo_flet.detect_frame(image_bytes)
                end = time.time()
                log.debug("耗时" + str((end - start) * 1000))
                await update_text(f"这是第{i}次推理--" + "耗时:" + str((end - start) * 1000))
                await asyncio.sleep(0.001)


                # for i in a:
                #     log.debug(i)

    async def update_text(i: str):
        text.value =i
        text.update()

    bt =ft.Button(content="start detect" , on_click=detect)
    text =ft.Text(value="aaa")
    page.add(
        bt,text
    )


ft.run(main, assets_dir="assets")

Link to documentation

Metadata

Release files for yolo-flet 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yolo-flet 0.1.2
File Size Uploaded Provenance Actions
yolo_flet-0.1.2.tar.gz 6.2 kB Without provenance Details for yolo_flet-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for yolo-flet 0.1.2
File Interpreter ABI Platform Actions
yolo_flet-0.1.2-py3-none-any.whl Python 3 none any Details for yolo_flet-0.1.2-py3-none-any.whl

Total release size: 12.8 kB

Release files / yolo_flet-0.1.2.tar.gz

Download URL yolo_flet-0.1.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
258bad71c5fe95f8685365882d6247a851eb8d27171c28b21e0c644ef9d92c16
BLAKE2b-256 checksum
How to use checksums
9b990424bfe442e820605f3c6bde43d2b6cdfc5a11d12f3dd3ae7c2140c9ff06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / yolo_flet-0.1.2-py3-none-any.whl

Download URL yolo_flet-0.1.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fa2d9e0736061665f9660380371d57d792681ce9107cb4ef69debad27c374ab
BLAKE2b-256 checksum
How to use checksums
84a8db5dd6fca77aa42413c9f1fad8d1e0aabf1add86bfc830bfc0a2aa14ceb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for yolo-flet 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page