GithubHelp home page GithubHelp logo

marc56k / electricitymetercam Goto Github PK

View Code? Open in Web Editor NEW
26.0 26.0 6.0 521.86 MB

A teeny-tiny CNN that runs on a ESP32-Camera to read digits of a ordinary electricity meter.

License: MIT License

C++ 35.62% C 60.72% Jupyter Notebook 3.18% HTML 0.19% Python 0.29%
cnn esp32 esp32-camera mqtt ocr tensorflow tfmicro

electricitymetercam's People

Contributors

marc-rossbach-in-tech avatar marc56k avatar thomasdiebel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electricitymetercam's Issues

model in the esp32

hello
I try to train my customized model and put it in the esp32
My model architecture is same as yours, but the size can't fit in the esp32.
And than I try to change other architecture to reduce the size of model.
After reduce the size, it can flash into esp32, but I still get the error
Could you help me?

i = tf.keras.layers.Input(shape=(28, 28, 1))
x = tf.keras.layers.Conv2D(filters=16, kernel_size=(3, 3), activation="relu")(i)
x = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(x)
x = tf.keras.layers.Dropout(0.5)(x)
x = tf.keras.layers.Conv2D(filters=32, kernel_size=(3, 3), activation="relu")(x)
x = tf.keras.layers.MaxPooling2D(pool_size=(2, 2))(x)
x = tf.keras.layers.Dropout(0.5)(x)
x = tf.keras.layers.Conv2D(filters=32, kernel_size=(3, 3), activation="relu")(x)
x = tf.keras.layers.Flatten()(x)
x = tf.keras.layers.Dense(64, activation="relu")(x)
x = tf.keras.layers.Dropout(0.5)(x)
x = tf.keras.layers.Dense(10, activation="softmax")(x)
model = tf.keras.Model(inputs=i, outputs=x)
model.compile(optimizer="rmsprop",
              loss="categorical_crossentropy",
              metrics=["accuracy"])
model.summary()

error i got

abort() was called at PC 0x400d6cee on core 1

Backtrace:0x400838d1:0x3ffb23700x4008ec89:0x3ffb2390 0x400948e5:0x3ffb23b0 0x400d6cee:0x3ffb2430 0x400e7933:0x3ffb2490 0x400e7ae5:0x3ffb2530 0x400e819b:0x3ffb25f0 0x400e66f7:0x3ffb2670 0x400d39d2:0x3ffb2690 0x400d560e:0x3ffb2700 0x400d571e:0x3ffb2760 0x400d5ad2:0x3ffb27f0 0x400efd91:0x3ffb2820

Advice for noob

Hey, I like this project. I would love to give try. Would you be so kind and help me how to instal this into a esp32cam? Which file is the main one? Should i install it over Arduino IDE or esp flasher tool? What variables should be added before instal? (Wifi credentials etc.) thank you Jan

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.