Search found 3999 matches

by kwagyeman
Tue Apr 14, 2020 10:34 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Let me do this now. I've been deep into getting the interface library complete. I'll switch gears and just give you a binary and do the updates today. Let me get back to you in a few hours.
by kwagyeman
Mon Apr 13, 2020 4:35 pm
Forum: Technical Discussion
Topic: Securing the OpenMV cam for deployment.
Replies: 7
Views: 981

Re: Securing the OpenMV cam for deployment.

Yeah, so, what would help is enumerating each interface that has a hole in it and then describing actions to take for locking down that interface. This will require you to get familiar with the STM32F4/F7/H7 and our code base. Also, thinking about what interfaces might need to be left running for di...
by kwagyeman
Mon Apr 13, 2020 1:23 pm
Forum: Technical Discussion
Topic: Securing the OpenMV cam for deployment.
Replies: 7
Views: 981

Re: Securing the OpenMV cam for deployment.

I really don't know how to do OTA updates. Our firmware binary doesn't leave space for two copies of itself in flash. I can only see you being able to update the python. This would be possible on the you flash drive. But, you'd need the bootloader to support this as if you used the python script to ...
by kwagyeman
Mon Apr 13, 2020 11:14 am
Forum: Technical Discussion
Topic: Securing the OpenMV cam for deployment.
Replies: 7
Views: 981

Re: Securing the OpenMV cam for deployment.

Yeah, I mean for scale you'd just buy cameras from OpenMV with a firmware binary you want programmed. Anything through the IDE is for development purposes. Given that... You really need a... Deployment binary on the device. So, I think the solution would be for us to modify the firmware to support r...
by kwagyeman
Sun Apr 12, 2020 6:30 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

You can modify your program to blink an LED.

And yes, the 5V supply is OR'ed with the USB so both can be attached at once.
by kwagyeman
Sun Apr 12, 2020 12:55 pm
Forum: Technical Discussion
Topic: Securing the OpenMV cam for deployment.
Replies: 7
Views: 981

Re: Securing the OpenMV cam for deployment.

I didn't know about that upy module for STM32 flash protection. That is nice.

Anyway, the real question is how much of this do you want in the IDE versus just having to do it manually.
by kwagyeman
Sat Apr 11, 2020 9:49 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

No, the OpenMV Cam runs it from the sd card or upy flash if there's no SD card. The script is never hidden.

(If there's enough user demand and contracting work we could probably implement some time of protection system for the cameras. So far, no-one's pushed us on that yet).
by kwagyeman
Sat Apr 11, 2020 12:03 pm
Forum: Technical Discussion
Topic: Fixing and improving imlib_draw_image
Replies: 1
Views: 614

Re: Fixing and improving imlib_draw_image

Can you send a PR on GitHub?
by kwagyeman
Sat Apr 11, 2020 12:02 pm
Forum: Technical Discussion
Topic: Repurposing Motor Shield
Replies: 2
Views: 664

Re: Repurposing Motor Shield

Yep, you can.
by kwagyeman
Sat Apr 11, 2020 12:02 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Tools->Save Script to OpenMV Cam. Then Tools->Reset OpenMV Cam.

Then you can use open terminal to view output after the script is already running. Just don't hit the send script button.
by kwagyeman
Fri Apr 10, 2020 7:24 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Hi, it's probably then the IDE being unable to send a script over the serial port without error. There's no fix for this... Use this script to send the your script to execute instead: https://github.com/micropython/micropython/blob/master/tools/pyboard.py#L57 It implements the REPL protocol to send ...
by kwagyeman
Fri Apr 10, 2020 1:44 pm
Forum: Technical Discussion
Topic: Local Testing
Replies: 4
Views: 694

Re: Local Testing

Not really, the library is written for an MCU. You'd have to instrument our code for running on the PC. We've love to do this... but, it's a lot of effort we don't have time for. If the community wanted to help support a port that would be awesome. MicroPython has a branch that runs on the PC under ...
by kwagyeman
Thu Apr 09, 2020 4:52 pm
Forum: Technical Discussion
Topic: OV5640 FREX mode
Replies: 7
Views: 978

Re: OV5640 FREX mode

Yes, you have direct register access with sensor.__read_reg() and sensor.__write_reg(). You can directly copy register addresses from the data sheet to peek and poke at things. I will include a sensor.ioctl() however to make this feature operational for you also.
by kwagyeman
Thu Apr 09, 2020 4:50 pm
Forum: Technical Discussion
Topic: OV5640 FREX mode
Replies: 7
Views: 978

Re: OV5640 FREX mode

STORE is not hooked up. I read the data sheet on that pin and it's useful for flash control. Anyway, the FSIN pin is on one of the OpenMV Cam H7 Plus headers. You can wire it to any I/O pin to control it. It's on an external I/O pin so multiple units can be connected to each other.
by kwagyeman
Thu Apr 09, 2020 4:46 pm
Forum: Technical Discussion
Topic: OV5640 FREX mode
Replies: 7
Views: 978

Re: OV5640 FREX mode

Hi, yes, this pin is hooked up on the OpenMV Cam H7.

Note the schematic is here: https://github.com/openmv/openmv-boards ... OV5640.pdf
by kwagyeman
Thu Apr 09, 2020 4:43 pm
Forum: Technical Discussion
Topic: Attempting to access object in assembler
Replies: 1
Views: 608

Re: Attempting to access object in assembler

Hi, I just added a new feature to the latest firmware where you can do .bytearray() to get a bytearray ref of the image which allows read or write of the underlying data. Attached is a firmware image for the H7 you can use.

This will be out in the next release.
by kwagyeman
Thu Apr 09, 2020 4:41 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Hi, the code runs in the IDE and open terminal. I notice you print out "while -1" at a very high speed which crashes the IDE when using OpenTerminal.
by kwagyeman
Wed Apr 08, 2020 5:36 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

The red bar is where you deleted things. The clean white space command cleans all whitespace a at the end of lines. This is necessary to do in order to get rid of got commit issues where white space differences are marked as changes. Unless you are using a version control system this doesn't matter ...
by kwagyeman
Wed Apr 08, 2020 1:23 pm
Forum: Technical Discussion
Topic: Camera doesn't react through serial port
Replies: 1
Views: 623

Re: Camera doesn't react through serial port

Okay.

Um, we have a new RPC library for control over a UART coming soon. Dealing with these issues will be a thing of the past very soon. Expect a new IDE release with the new functionality within the month.
by kwagyeman
Wed Apr 08, 2020 1:22 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Um, just do show whitespace and then you can see tabs. They look like -> versus . when whitespace is visualized.

... I think I might be able to add a feature that fixes issues like this in the IDE automatically.
by kwagyeman
Tue Apr 07, 2020 11:42 pm
Forum: Technical Discussion
Topic: Interface Library Discussion
Replies: 12
Views: 3271

Re: Interface Library Discussion

Hi all, I'm almost done with the interface library: https://github.com/kwagyeman/openmv/blob/kwabena/interface_library/scripts/libraries/mutex.py https://github.com/kwagyeman/openmv/blob/kwabena/interface_library/scripts/libraries/rpc.py https://github.com/kwagyeman/openmv/blob/kwabena/interface_lib...
by kwagyeman
Tue Apr 07, 2020 9:38 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

You probably have a tab in your code. The terminal may not be sending tabs correctly and it might be changing tabs to spaces. Please remove any tabs in your code. The IDE has an option to do that for you under edit.
by kwagyeman
Tue Apr 07, 2020 6:25 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Can you out up your device manager in windows and search for the OpenMV Cam serial port? You should find a USB VCP port in the device tree with a COM number next to it. If that's COM3, you need to disconnect the IDE normally from the cam before you can connect with the Open Terminal feature. Again, ...
by kwagyeman
Tue Apr 07, 2020 4:04 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Hi, sure, but, it's not: https://github.com/openmv/tensorflow-lib/blob/master/libtf.cc#L39 When our code checks your model it reports that the input vector is not uint8. Mmm, Ah, maybe its int8. Which in this case I need to update out TensorFlow code. I can do that. Will do tomorrow. I have a lot go...
by kwagyeman
Tue Apr 07, 2020 2:24 pm
Forum: General Topics
Topic: Moving camera background correction
Replies: 3
Views: 953

Re: Moving camera background correction

Depends on the signal to noise ratio. You typically can use faster algorithms for things when it's really easy to track the thing.

E.g. low less color blob tracking is very fast but not robust to massive lighting changes.
by kwagyeman
Tue Apr 07, 2020 11:01 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

That error is talking about a internal layer. The line of code the error is on is mentioned. I would look at that line since this is not our code: https://github.com/openmv/tensorflow/blob/2e8916647cf8442c3cd18ea77d341eaff0411652/tensorflow/lite/micro/kernels/quantize.cc#L51 Honestly, I'm, not sure ...
by kwagyeman
Mon Apr 06, 2020 9:49 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Just try each until you find the camera. Alternatively, you can go into your device manager in windows and look for the COM port associated with the USB VCP device the camera appears as. Please understand the Open Terminal feature allows communication with any serial port device. It's not just meant...
by kwagyeman
Mon Apr 06, 2020 2:39 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

Hi, when you power cycle the camera it will run whatever is in main.py. you can power via USB or Vin.
by kwagyeman
Mon Apr 06, 2020 1:40 am
Forum: General Topics
Topic: Global Shutter
Replies: 38
Views: 41137

Re: Global Shutter

Sorry, I didn't read your original response. You have to edit the C code to support the color sensor. The output of that sensor is Bayer so you need to adjust this method here: https://github.com/openmv/openmv/blob/master/src/omv/mt9v034.c#L168 To support PIXFORMAT_BAYER and then set the pix format ...
by kwagyeman
Sun Apr 05, 2020 8:58 pm
Forum: General Topics
Topic: Global Shutter
Replies: 38
Views: 41137

Re: Global Shutter

It doesn't support color.
by kwagyeman
Sun Apr 05, 2020 8:12 pm
Forum: Technical Discussion
Topic: microSD
Replies: 28
Views: 1903

Re: microSD

The OpenMV Cam runs whatever is called main.py on power on. Save script to OpenMV Cam in the ide just copies the current script to the main.py file on the disk. If you want to see print statement output whatever opens the serial port on the OpenMV Cam will receive that data. OpenMV IDE always sends ...
by kwagyeman
Sat Apr 04, 2020 6:07 pm
Forum: Technical Discussion
Topic: few questions about MJPEG Streaming AP example
Replies: 1
Views: 629

Re: few questions about MJPEG Streaming AP example

Hi, the WiFi module doesn't have great performance for image streaming. It can do simple text transfers well... but, it's not designed to allow a microcontroller to push a lot of data very quickly.
by kwagyeman
Sat Apr 04, 2020 12:11 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 1347

Re: image

You connect 4v-6v on VIN and GND. The OpenMV Cam Plus is shipping now. Driver work is not fully yet completed for it however so the performance is not as high as it should be yet but it's functional.
by kwagyeman
Sat Apr 04, 2020 12:09 pm
Forum: General Topics
Topic: Stereovision
Replies: 9
Views: 2404

Re: Stereovision

You can only do with with the global shutter camera right now. With the OpenMV Cam Plus we have a OV5640 camera which has a trigger line. The driver is not done yet for it but it should be able to take triggered images that have less than 1 ms difference.
by kwagyeman
Fri Apr 03, 2020 12:50 am
Forum: Technical Discussion
Topic: Global Shutter color image
Replies: 1
Views: 645

Re: Global Shutter color image

No, it's grayscale only. You can build a version of it with a Bayer filter on the sensor but the amount of dsp processing you have to apply to get a color image is too high. So, it doesn't make sense for the H7 to do that as it will destroy the frame rate. Omnivision cameras have an ISP onboard whic...
by kwagyeman
Thu Apr 02, 2020 12:59 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Ah, yeah, my documentation is out of date. Cd into MicroPython and into the mpcross directory and do run make.
by kwagyeman
Thu Apr 02, 2020 12:58 pm
Forum: Technical Discussion
Topic: Responsivity at different wavelength
Replies: 1
Views: 618

Re: Responsivity at different wavelength

Hi, the global shutter sensor is from OnSemi. Whatever they quote in the datasheet is likely correct. From a practical standpoint. The number of LED doesn't matter as much as what your noise floor is. If you don't have a lot of other things going on in an image one led is enough. You should consider...
by kwagyeman
Wed Apr 01, 2020 8:37 pm
Forum: Project Discussion
Topic: OpenMV Cam H7 Plus: Supported sensors
Replies: 2
Views: 812

Re: OpenMV Cam H7 Plus: Supported sensors

1. The ones we sell on our store. 2. Yes, You can make your own board and write your own driver code. There are numerous examples in our firmware. 3. Yes, RAW BAYER. We don't do YUV. Either RGB565 or 8-BIT GRAYSCALE if you want more processed than RAW BAYER. 4. Yes, you also have camera register lev...
by kwagyeman
Wed Apr 01, 2020 2:04 pm
Forum: Technical Discussion
Topic: Pic time for OV2640 in JPEG/UXGA with USB connected
Replies: 5
Views: 750

Re: Pic time for OV2640 in JPEG/UXGA with USB connected

Yeah, the first image takes 250 ms because I reset the camera after you made the setup calls to it. It takes a while to start generating valid frames. You moved skip frames code I see. As for the speed of capture. I can't say that UXGA mode with the OV2640 is really fast. I only got the driver techn...
by kwagyeman
Wed Apr 01, 2020 12:15 pm
Forum: Technical Discussion
Topic: Pic time for OV2640 in JPEG/UXGA with USB connected
Replies: 5
Views: 750

Re: Pic time for OV2640 in JPEG/UXGA with USB connected

Oh, it's because of the SD card write. There's no way to know how long writing to media takes.
by kwagyeman
Mon Mar 30, 2020 5:50 pm
Forum: Project Discussion
Topic: OpenMV based visul sorter
Replies: 5
Views: 996

Re: OpenMV based visul sorter

I see. So, you should mock up a system with the camera and see if you can resolve good picture quality with how you want to mount it. Please find the right optics that work for you. Once you can get good images you can then work on the vision code part. If you can't get good images first then there'...
by kwagyeman
Mon Mar 30, 2020 5:47 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 1347

Re: image

Doesn't really matter unless you plan to fill it up. Please avoid over 32 GB as the camera doesn't do SDXC.
by kwagyeman
Mon Mar 30, 2020 12:10 pm
Forum: General Topics
Topic: Moving camera background correction
Replies: 3
Views: 953

Re: Moving camera background correction

Hi, the img returned from the snapshot and get_fb() are the same... So, in your code you are taking the current image and subtracting the last one and then saving the difference image to the extra fb which was not what you were trying to do. Instead, do snapshot, then apply the difference to the ext...
by kwagyeman
Mon Mar 30, 2020 3:02 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

https://github.com/openmv/openmv/wiki

Probably next week for a new release.
by kwagyeman
Mon Mar 30, 2020 2:31 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

This literally means that TensorFlow Lite from Google doesn't support that opcode yet. That said, Google might have added support for it. https://github.com/openmv/tensorflow/blob/openmv/tensorflow/lite/micro/kernels/all_ops_resolver.cc It looks like the latest unreleased code has support for that o...
by kwagyeman
Sun Mar 29, 2020 7:38 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 1347

Re: image

Connect to the camera first.
by kwagyeman
Sun Mar 29, 2020 6:23 pm
Forum: Project Discussion
Topic: OpenMV based visul sorter
Replies: 5
Views: 996

Re: OpenMV based visul sorter

Hi, the thing that will work the best if you can attach apriltags or qrcodes to the productions and then sort using these. They are much easier for machine vision cameras to detect. If you switch to using those then the main problems you will encounter will be related to optics. Focusing on such sma...
by kwagyeman
Sun Mar 29, 2020 6:19 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 1347

Re: image

It will run at startup. Main.py runs at startup. The blinking blue light is a main.py script on the camera when it's fresh.
by kwagyeman
Sun Mar 29, 2020 2:44 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 1347

Re: image

Tools->Save Script to OpenMV Cam.

Go to advanced search