Code Monkey home page Code Monkey logo

parkingdetection_meter's People

Contributors

nlitz88 avatar sbhanda avatar

Watchers

 avatar

parkingdetection_meter's Issues

Write client Serial code to send plate images from Arduino (ESP32 or Nano BLE)

Very primitive protocol will go something like this:

  1. Client sends height of plate crop image as unsigned 16 bit integer (8 bits too small for large crop heights/widths)
  2. Client sends width of plate crop image as unsigned 16 bit integer
  3. Client sends over number of bytes in crop (n)
  4. Client sends n bytes, one after another.

Could also include a preamble/postamble if we want to wrap each transmission, but not strictly necessary. Could potentially prevent some confusion.

Also, down the road, could do TCP over serial if we find that we really need delivery guarantees, and could even use some CRC on top of that to ensure reliable delivery. Not so critical for images, though. PySerial provides a TCP implementation, and it also looks like there's an official Arduino library for this.

Write rough interface for sending plate crop byte stream

I.e., create a header file that defines the interface that should be implemented by a given protocol.

For example: Maybe the interface has a function called send_plate_image(void *plate_crop_buffer, hub_t hub)

  • If we have an HTTP implementation of this interface, the definition of send_plate_image might create a new connection to the specified hub, where the hub in this case is an IP Address and port, and then send a message to the API via a URL.

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.