diff --git a/README.md b/README.md index 5f13210..5137e35 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Source code and examples for using and testing your Tiny Machine Learning Kit an This library also includes: 1) A modified verison of the 0.0.2 version of the OV767X Library for Arduino (Copyright (c) 2020 Arduino SA) which is based on [Linux Kernel](https://www.kernel.org) V4L2 driver for OmniVision OV7670 cameras - which was created by Jonathan Corbet. -2) Modified examples from the 2.4.0-Alpha version of the TensorFlow_Lite for Microcontrollers Library. (Copyright (c) 2021 TensorFlow Team at Google) [https://www.tensorflow.org/lite/microcontrollers](https://www.tensorflow.org/lite/microcontrollers) +2) Modified examples and a packaged version of the 2.4.0-Alpha version of the TensorFlow_Lite for Microcontrollers Library. (Copyright (c) 2021 TensorFlow Team at Google) [https://www.tensorflow.org/lite/microcontrollers](https://www.tensorflow.org/lite/microcontrollers) == License == diff --git a/extras/CameraCaptureRawBytes/CameraCaptureRawBytes.ino b/extras/CameraCaptureRawBytes/CameraCaptureRawBytes.ino index d27f780..4a0122d 100644 --- a/extras/CameraCaptureRawBytes/CameraCaptureRawBytes.ino +++ b/extras/CameraCaptureRawBytes/CameraCaptureRawBytes.ino @@ -12,13 +12,13 @@ int bytesPerFrame; -byte data[176 * 144 * 2]; // QVGA: 320x240 X 2 bytes per pixel (RGB565) +byte data[176 * 144 * 2]; // QCIF: 176x144 X 2 bytes per pixel (RGB565) void setup() { Serial.begin(9600); while (!Serial); - if (!Camera.begin(QVGA, RGB565, 1, OV7675)) { + if (!Camera.begin(QCIF, RGB565, 1, OV7675)) { Serial.println("Failed to initialize camera!"); while (1); } @@ -33,4 +33,4 @@ void loop() { Camera.readFrame(data); Serial.write(data, bytesPerFrame); -} +} \ No newline at end of file diff --git a/library.properties b/library.properties index ab88a04..d36d498 100644 --- a/library.properties +++ b/library.properties @@ -1,11 +1,11 @@ name=Harvard_TinyMLx -version=1.1.0-Alpha +version=1.2.3-Alpha author=TinyMLx Authors maintainer=Brian Plancher sentence=Supports the TinyML edX Course and TinyML Shield. -paragraph=This library supports the TinyML Shield and provides examples that suppor the TinyML edX course. The examples work best with the Arduino Nano 33 BLE Sense board and the Tiny Machine Learning Kit from Arduino. It also includes a modified version of the Arduino_OV767X library version 0.0.2 and a fork of the TensorFlow_Lite version 2.4.0-Alpha +paragraph=This library supports the TinyML Shield and provides examples that support the TinyML edX course. The examples work best with the Arduino Nano 33 BLE Sense board and the Tiny Machine Learning Kit from Arduino. It also includes a modified version of the Arduino_OV767X library version 0.0.2 and a fork of the TensorFlow_Lite library version 2.4.0-Alpha category=Sensors -url=http://www.tinymlx.org +url=http://www.tinymledu.org includes=TinyMLShield.h,TensorFlowLite.h ldflags=-lm architectures=mbed_nano diff --git a/src/OV767X_TinyMLx.cpp b/src/OV767X_TinyMLx.cpp index c89ffc7..f60ecc4 100644 --- a/src/OV767X_TinyMLx.cpp +++ b/src/OV767X_TinyMLx.cpp @@ -198,12 +198,20 @@ int OV767X::height() const int OV767X::bitsPerPixel() const { - return _bytesPerPixel * 8; + if (_grayscale) { + return 8; + } else { + return _bytesPerPixel * 8; + } } int OV767X::bytesPerPixel() const { - return _bytesPerPixel; + if (_grayscale) { + return 1; + } else { + return _bytesPerPixel; + } } // pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy