Search found 3837 matches

by kwagyeman
Thu Apr 09, 2020 4:52 pm
Forum: Technical Discussion
Topic: OV5640 FREX mode
Replies: 4
Views: 30

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: 4
Views: 30

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: 4
Views: 30

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: 31

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: 19
Views: 224

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: 19
Views: 224

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: 51

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: 19
Views: 224

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: 1438

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: 19
Views: 224

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: 19
Views: 224

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: 12
Views: 500

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: 157

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: 12
Views: 500

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: 19
Views: 224

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: 19
Views: 224

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: 36
Views: 39189

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: 36
Views: 39189

Re: Global Shutter

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

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: 49

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: 405

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: 1240

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: 61

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: 12
Views: 500

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: 59

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: 146

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: 80

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: 80

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: 3
Views: 142

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: 405

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: 157

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: 12
Views: 500

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: 12
Views: 500

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: 405

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: 3
Views: 142

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: 405

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: 405

Re: image

Tools->Save Script to OpenMV Cam.
by kwagyeman
Thu Mar 26, 2020 9:31 pm
Forum: Technical Discussion
Topic: image
Replies: 14
Views: 405

Re: image

Hi, do sensor.flush(). When you call snapshot() it flushed the frame buffer by jpeg compressing it and then putting that in a jpeg buffer the IDE can pull later asynchronously. Then snapshot grabs the next image from the camera. Flush just does the first part above. Note that the IDE still grabs the...
by kwagyeman
Thu Mar 26, 2020 7:36 pm
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 231

Re: Template Matching - Implementation

Super. That said, I can't say when I will get to it.
by kwagyeman
Thu Mar 26, 2020 5:00 pm
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 231

Re: Template Matching - Implementation

https://github.com/openmv/openmv/issues

This helps us track stuff. That said, it can literally sit there forever unless you bug me to do it repeatedly. I'm basically a fire fighter. No squeaking, no oil ;)
by kwagyeman
Thu Mar 26, 2020 4:59 pm
Forum: Technical Discussion
Topic: Smoked it
Replies: 5
Views: 557

Re: Smoked it

Try DFU mode?

You might have given the 5V USB input 12V however which would damage the main CPU.
by kwagyeman
Thu Mar 26, 2020 1:32 pm
Forum: Technical Discussion
Topic: Temperature value of each pixel captured by LEPTON
Replies: 10
Views: 1458

Re: Temperature value of each pixel captured by LEPTON

Yes, I would open a file in python. Just use standard python code to open a text file and write out the file name and the temperature scale you used to that text file log. You can open the file in append mode so that you just append to it.
by kwagyeman
Thu Mar 26, 2020 12:30 pm
Forum: Technical Discussion
Topic: Something like chkdsk for SdCard in python ?
Replies: 5
Views: 197

Re: Something like chkdsk for SdCard in python ?

Jpg compression is already pretty high... what do you need to compress?
by kwagyeman
Thu Mar 26, 2020 10:37 am
Forum: Technical Discussion
Topic: Template Matching - Implementation
Replies: 5
Views: 231

Re: Template Matching - Implementation

Hi, template matching hasn't been worked on in a while. It could use a lot of improvements. The code isn't a lot and we have a performance optimizer on staff right now. I'm doing OpenMV IDE updates currently... but, if you place a feature request to improve template matching on the forums we can opt...
by kwagyeman
Wed Mar 25, 2020 11:23 pm
Forum: General Topics
Topic: Count the white pixels on image
Replies: 5
Views: 806

Re: Count the white pixels on image

Please see the color tracking examples. Color tracking is done in the LAB color space. Tracking is done by thresholding the image with min/maxes for the 3 LAB color channels. This means you need to pass a 6-tuple value to methods to track colors.

The color tracking examples explain this.
by kwagyeman
Wed Mar 25, 2020 11:21 pm
Forum: Technical Discussion
Topic: Memory Error, out of fast Frame Buffer Stack - H7
Replies: 7
Views: 580

Re: Memory Error, out of fast Frame Buffer Stack - H7

Did you clone the repo correctly? If you pulled the latest tensorflow then I have no idea. Things break constantly upstream. You should just clone the repo and init submodules and then it should build okay.

Also, try compiling more than once. TensorFlow fails to build the first time sometimes.
by kwagyeman
Tue Mar 24, 2020 12:11 pm
Forum: Technical Discussion
Topic: Calculating distance between an Apriltag and Openmv
Replies: 1
Views: 91

Re: Calculating distance between an Apriltag and Openmv

The Apriltags tells you the distance to it. See the x/y/z_translation() methods on the tag object. As mentioned in the documentation the units are returned without much meaning. If you want them to mean something you have to use the Apriltags 6dof 3d tag example I'm the IDE which explains how you pa...
by kwagyeman
Sun Mar 22, 2020 8:38 pm
Forum: Technical Discussion
Topic: UART automatic baud rate detection
Replies: 4
Views: 251

Re: UART automatic baud rate detection

Thanks for posting!

Go to advanced search