Git Product home page Git Product logo

yolov8_grpc's Introduction

yolov8_demo

这是一个利用GRPC实现: 在客户端负责选择检测模型与需要检测的图片,在服务器端实现目标的检测并传回检测结果的程序

编写接口

在.proto文件中,service类下写rpc方法。rpc方法有输入输出,在service类后可以定义输入输出的数据结构。

生成grpc代码

python -m grpc_tools.protoc -I./protos --python_out=. --grpc_python_out=. ./protos/trailer.proto

服务端

import入生成的两个grpc代码,定义一个类Service,在里面重写方法(函数)。方法serve:启动一个 gRPC 服务器的代码。

客户端

定义一个run函数,负责连接服务器,然后调用trailer_pb2_grpc.TrailerStub类,即可以调用服务器中对应的重写方法,进行数据的传入与结果的传出。

models

存储yolov8训练好的模型

yolov8_grpc's People

Contributors

renshan1 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

git-tengsun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.