arduino-libraries / Arduino_OV767X

Official OV767X Library for Arduino , currently supports OV7670 and OV7675 cameras
https://www.arduino.cc/reference/en/libraries/arduino_ov767x/
GNU General Public License v2.0
68 stars 25 forks source link

Feature request: Example for the PortentaH7 #6

Closed hpssjellis closed 2 years ago

hpssjellis commented 3 years ago

Please design an ov7670 library example for the Arduino PortentaH7. I am doing a fair bit of examples and am only interested in the ov7670 library to be able to port it to the Portenta if possible. My other examples are at

https://github.com/hpssjellis/my-examples-for-the-arduino-portentaH7

If you can make an attempt at the example I would be fine testing it as soon as I get female headers for my Portenta.

@sbhklr

sebromero commented 3 years ago

@hpssjellis Might be just a matter of mapping different ports. I'll investigate.

hpssjellis commented 3 years ago

Using the new release mBED core 1.3.1 the CameraCaptureRawBytes Demo does not compile for the M7 core of the PortentaH7

facchinm commented 3 years ago

@hpssjellis to support the Portenta a patch must be done at library level and is not trivial (furthermore, it would make little sense unless you use the hardware camera interface which is only located on high density connectors). I'd avoid bitbanging but if it's something useful I can try coding something.

hpssjellis commented 3 years ago

It would be very useful.

@facchinm yes the high density connector does make sense and from talking with the facebook Arduino zoom group with @sebromero and others, I think a color camera shield is on it's way (no idea when), however just getting a color camera working is only the first step. Tons of machine learning programs could use a color camera, using Arduino C/C++ code and the use of the inner M4 core, but that also will not be trivial to get working.

My Arduino Machine Learning

My TensorflowJS Machine Learning

The ov7670 low cost camera solution working with the PortentaH7 would get a huge head start going on Standard Color Machine Learning using the Portenta. The OpenMV solution has a few issues (grey scale only, single core only, micro-python only)

hpssjellis commented 3 years ago

It looks like the Portenta Vision Shield examples are getting updated. I got a Machine Learning program working with the updates but are still stuck with the Grayscale that the ov7670 camera would solve. Presently the O7670 camera is not working with my Machine Learning using edge Impulse becuase I think the frameBuffer is not being zeroed, like they are doing with the Portenta framebuffer camera. Any susggestions for zeroing the frame buffer.

https://github.com/arduino/ArduinoCore-mbed/pull/122