Search found 3264 matches

by kwagyeman
Thu Aug 01, 2019 1:54 pm
Forum: General Topics
Topic: What is the simplest way to create my own python function ?
Replies: 7
Views: 2802

Re: What is the simplest way to create my own python function ?

Yes, that's about right. You know, folks keep failing to find the wiki and asking this. I think I'll move the wiki to the readme file along with adding a note about how to do this.
by kwagyeman
Wed Jul 31, 2019 2:55 pm
Forum: General Topics
Topic: IR-LOCK for OPENMV CAM
Replies: 2
Views: 1466

Re: IR-LOCK for OPENMV CAM

See the grayscale blob tracking example. It does what you want. I/O code you have to write however.
by kwagyeman
Wed Jul 31, 2019 2:55 pm
Forum: Technical Discussion
Topic: M12 to C Mount Lenses - Will the Cam H7 Board Work
Replies: 2
Views: 1474

Re: M12 to C Mount Lenses - Will the Cam H7 Board Work

Hi Jason, as long as you buy the necessary adapters you should be fine. Keep in mind however that you may not be able to focus the image circle on the camera easily accept at some distances. I.e. with a huge zoom only things far away will be in focus. I can't tell what that distance will be and if y...
by kwagyeman
Tue Jul 30, 2019 7:34 pm
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

I can move the move structs to the heap space. It's more work however than just making the stack larger.
by kwagyeman
Tue Jul 30, 2019 2:18 am
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

Ibrahim can you increase the stack on the M4 and M7?
by kwagyeman
Tue Jul 30, 2019 2:17 am
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

Okay, debugged this. So, the issue is literally that you are running out of stack on the M7. We only had the stack about 3KB on the M7 and because we added a bunch of new features to find_blobs() to make it more or less at parity with OpenCV it uses way more stack now. When I run the code on the H7 ...
by kwagyeman
Tue Jul 30, 2019 12:52 am
Forum: Technical Discussion
Topic: Timer with sensor.snapshot
Replies: 5
Views: 1832

Re: Timer with sensor.snapshot

I believe MicroPython doesn't allow the use of floats in interrupt handlers. As for your code... the print statement isn't in the callback so it can't print every millisecond... If you want to do that then subtract using the camera. You can't do print in a callback however as print blocks on I/O and...
by kwagyeman
Mon Jul 29, 2019 12:21 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 20
Views: 9193

Re: RGB channel extraction

Do:

img.to_rgb565(rgb_channel=0)

This will extract the red channel only. If you want the image to go to grayscale do:

img.to_grayscale(rgb_channel=0)

Then the image will be the red channel but in grayscale.
by kwagyeman
Mon Jul 29, 2019 12:16 pm
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

Sorry, I was focused on doing other work for the business. OpenMV is at a point where it's beyond my ability to do everything as quickly as I used to.
by kwagyeman
Sat Jul 27, 2019 1:36 pm
Forum: Project Discussion
Topic: Detect a candle fire using OpenMV H7 and FLIR
Replies: 21
Views: 17641

Re: Detect a candle fire using OpenMV H7 and FLIR

Hi, what temperature range are you tracking? The flame is definitely hotter than 40C. Have you tried raising the max temperature range? Please post the code you are running and the IDE frame buffer pic.
by kwagyeman
Fri Jul 26, 2019 2:41 pm
Forum: Technical Discussion
Topic: RGB channel extraction
Replies: 20
Views: 9193

Re: RGB channel extraction

Hi, the latest firmware that has been release has the above features. You do not need to upload new firmware to your camera manually.
by kwagyeman
Fri Jul 26, 2019 2:39 pm
Forum: Technical Discussion
Topic: Depth Sensing feature/camera support
Replies: 1
Views: 1289

Re: Depth Sensing feature/camera support

SingTown looked at doing this. We've also looked at it too.

Power consumption and cost sink the idea each time however. Doing 3D ToF just requires like 10Watts or more of light power and then lots of expensive parts to work. It doesn't make sense to build at a low cost point right now.
by kwagyeman
Fri Jul 26, 2019 2:38 pm
Forum: Technical Discussion
Topic: Process for building custom a model, training it, and deploying it to the OpenMV Cam H7
Replies: 13
Views: 6197

Re: Process for building custom a model, training it, and deploying it to the OpenMV Cam H7

The port has been completed. It will be released in the next firmware release. I was busy having a social life for a while but I'm putting more time into OpenMV development now again.
by kwagyeman
Thu Jul 25, 2019 11:58 am
Forum: Technical Discussion
Topic: using umatrix in OpenMV
Replies: 2
Views: 1226

Re: using umatrix in OpenMV

What's the error?
by kwagyeman
Thu Jul 25, 2019 10:38 am
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

Great, I will debug tonight.
by kwagyeman
Thu Jul 25, 2019 2:33 am
Forum: Project Discussion
Topic: Plot Profile function
Replies: 5
Views: 1786

Re: Plot Profile function

You have to pass a flag to find_blobs() for it to populate the output since this takes a lot of CPU and RAM it doesn't do it unless asked. Please see the API.
by kwagyeman
Thu Jul 25, 2019 2:32 am
Forum: Technical Discussion
Topic: SPI Transmit from Firmware
Replies: 1
Views: 1299

Re: SPI Transmit from Firmware

Um, have you looked at SPI.c in the MicroPython src?

Check the STM32 port. Just follow how they do things in the code to get it working.
by kwagyeman
Wed Jul 24, 2019 12:04 pm
Forum: General Topics
Topic: Linear CCD sensor module
Replies: 2
Views: 1362

Re: Linear CCD sensor module

Make sure the sensor has a DVP interface with 8 bits of data, a clock, and href, and vsync.
by kwagyeman
Wed Jul 24, 2019 12:03 pm
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 17
Views: 6115

Re: M7 crashes under Vin but works fine with USB

This seems like a legit issue with callbacks. In our code we let MicroPython do all the work for running the callback. So, I don't push/pop stack pointers. So, I'm wondering if this is a bug in MicroPython. Okay, can you generate example code for the failure and success cases that are simple enough ...
by kwagyeman
Tue Jul 23, 2019 12:45 am
Forum: Technical Discussion
Topic: LCD shield displays wrong color and bad quality
Replies: 7
Views: 2146

Re: LCD shield displays wrong color and bad quality

Thanks, sent it to our CM.
by kwagyeman
Tue Jul 23, 2019 12:43 am
Forum: Project Discussion
Topic: Plot Profile function
Replies: 5
Views: 1786

Re: Plot Profile function

Um, there's a x and y histogram method that will give you the projection of the blob in 1d each direction. This may be what you want. I.e, the x histogram will return the count of pixels of every column in the blob binned into X number of bins. X will initially be the size of the width of the blob, ...
by kwagyeman
Mon Jul 22, 2019 4:08 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Use async serial, and then use an Arduino mega since it has multiple serial ports. Or, use software serial with your Arduino. You want to avoid using the main serial UART with the camera.
by kwagyeman
Mon Jul 22, 2019 4:06 pm
Forum: Technical Discussion
Topic: Saving scripts with .py extension
Replies: 1
Views: 1292

Re: Saving scripts with .py extension

Hi, the IDE supports multiple file formats behind .py files. I can make it do that if you'd like however.

Please open a GitHub issue on it. We do not track requests in the forums.
by kwagyeman
Mon Jul 22, 2019 2:21 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Can you just buy an LCD that supports serial? That's works fine with the H7 right now. You just TX the string you want to send at like 9600 baud to it and then it displays it.
by kwagyeman
Mon Jul 22, 2019 12:51 pm
Forum: Technical Discussion
Topic: LCD shield displays wrong color and bad quality
Replies: 7
Views: 2146

Re: LCD shield displays wrong color and bad quality

Can I get a higher res pic of the QR code. My CM wants to see it so they can lookup the unit.
by kwagyeman
Mon Jul 22, 2019 11:29 am
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Okay, our pyb must have issues with the I2C driver on the H7.

Ibrahim, can you look into this?

In the meantime, if you want to try to change the calls from using pyb to machine in the example program you may be able to get it working. Us fixing the bug is going to take a while.
by kwagyeman
Mon Jul 22, 2019 10:45 am
Forum: Technical Discussion
Topic: LCD shield displays wrong color and bad quality
Replies: 7
Views: 2146

Re: LCD shield displays wrong color and bad quality

Hi, can you send me a picture of the QR code that you have on the back of your LCD shield? This will help us check how it was bad.
by kwagyeman
Mon Jul 22, 2019 10:44 am
Forum: Technical Discussion
Topic: help please
Replies: 5
Views: 11661

Re: help please

SingTown designed on already. We should stock it.
by kwagyeman
Sun Jul 21, 2019 12:20 pm
Forum: Technical Discussion
Topic: Camera settings of a program that recognizes both color and circle
Replies: 7
Views: 1999

Re: Camera settings of a program that recognizes both color and circle

Okay, I don't really understand the problem you having then. The images look okay. Can you be more detailed?
by kwagyeman
Sat Jul 20, 2019 11:08 pm
Forum: General Topics
Topic: Is wireless programming now available?
Replies: 1
Views: 1432

Re: Is wireless programming now available?

Hi, we technically completed it but I found it to cause a lot of issues so we have never announced it. The wifi shield requires way too much cpu time to stream images and do anything else. Better is to use a Bluetooth serial port with the Open Terminal feature of OpenMV IDE. You can wirelessly contr...
by kwagyeman
Sat Jul 20, 2019 11:06 pm
Forum: Technical Discussion
Topic: Camera settings of a program that recognizes both color and circle
Replies: 7
Views: 1999

Re: Camera settings of a program that recognizes both color and circle

Hi, you need to turn auto white balance off immediately. It changes the color of the image when the picture isn't staring at a complex scene. So, before the skip frames call turn auto white balance off using the set_auto_whitebalance() method.
by kwagyeman
Fri Jul 19, 2019 3:30 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Mmm, okay,

Can you use this module instead for I2C and try scan?

https://docs.micropython.org/en/latest/ ... e.I2C.html

The machine module bit bangs I2C with pins so it should always work. It's possible a MicroPython upstream change broke I2C.
by kwagyeman
Fri Jul 19, 2019 12:36 pm
Forum: General Topics
Topic: Will OpenMV run Tensorflow 2 models?
Replies: 3
Views: 1754

Re: Will OpenMV run Tensorflow 2 models?

I've freed up time finally to start dev work again. We will have a new release in a month or two. I decided to have a social life for once and my time disappeared suddenly. That said, I've cut out other things from my life like TV to free up more time to work.
by kwagyeman
Fri Jul 19, 2019 12:34 pm
Forum: Technical Discussion
Topic: LCD shield displays wrong color and bad quality
Replies: 7
Views: 2146

Re: LCD shield displays wrong color and bad quality

That seems to be a bad unit. Not sure how it passed testing. We check that these are okay.

Please contact us via email for a replacement.

(Hoping this ins't a systematic issue).
by kwagyeman
Fri Jul 19, 2019 12:33 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Mmm, scan should work. Question, are there pull up resistors on the I2C lines?

Also, from the pic you swapped SCL and SDA. That will prevent it from working.
by kwagyeman
Fri Jul 19, 2019 12:28 pm
Forum: General Topics
Topic: FLIR Lepton 3.5 shutter
Replies: 2
Views: 1463

Re: FLIR Lepton 3.5 shutter

Hi, it's not a problem. The FLIR lepton does that constantly. It's called flat field correction. It has to do this to self calibrate. You can see if it does it using this code: import ustruct, sensor def start_ffc(): sensor.ioctl(sensor.IOCTL_LEPTON_RUN_COMMAND, 0x0242) def get_ffc_running(): state ...
by kwagyeman
Fri Jul 19, 2019 12:26 pm
Forum: Technical Discussion
Topic: LCD shield compatibility with servo and P&T shields
Replies: 4
Views: 4727

Re: LCD shield compatibility with servo and P&T shields

You might be able to get away by not connecting the reset pin on the LCD shield. Not sure if it will work without it. But, we did that for the TV shield and it was okay.
by kwagyeman
Thu Jul 18, 2019 4:59 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Please use the pyb examples. The OpenMV Cam has the same pyb module that the pyb board from MicroPython has. So, that should be what you use. Different MicroPython boards have different hardware abstraction layers. I don't know what the SMBUS module is. This is the file you want to use: https://gith...
by kwagyeman
Thu Jul 18, 2019 4:56 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 3212

Re: Project Idea: Automatically point camera at target

Hi, the firmware version is literally displayed in the bottom right corner of the IDE.

The OMV module in python has the version number. See the API documentation.
by kwagyeman
Thu Jul 18, 2019 2:33 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

Hi, all the libraries needed should be in the source folder you downloaded. Copy them to the OpenMV Cam disk.
by kwagyeman
Thu Jul 18, 2019 2:11 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 3212

Re: Project Idea: Automatically point camera at target

Um, the firmware.bin file in the GitHub is the firmware for the camera.

OMV2 is the M4
OMV3 is the M7
OMV4 is the H7
by kwagyeman
Thu Jul 18, 2019 2:10 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 3212

Re: Project Idea: Automatically point camera at target

Yes, please see the OMV module. You can get the firmware version and etc from it.
by kwagyeman
Thu Jul 18, 2019 11:29 am
Forum: Technical Discussion
Topic: keypoints_editor
Replies: 2
Views: 1361

Re: keypoints_editor

Ibrahim has to answer this. I haven't touched that code in a long, long, long time.
by kwagyeman
Wed Jul 17, 2019 4:35 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

The camera can only see modules on its own disk. So, when you import stuff they need to be on the camera.
by kwagyeman
Wed Jul 17, 2019 3:30 pm
Forum: Technical Discussion
Topic: Support for I2C LCD 4x20 displays
Replies: 27
Views: 9159

Re: Support for I2C LCD 4x20 displays

You need to copy those files from the package you downloaded to the OpeMV Cam's disk. The IDE is just a text Editor. The camera is what actually compiles and runs the code.
by kwagyeman
Wed Jul 17, 2019 1:53 pm
Forum: Technical Discussion
Topic: OSError -12 while running mqtt demo
Replies: 8
Views: 2358

Re: OSError -12 while running mqtt demo

I don't think we have ussl installed on our system. We have flash space for it however. Please create a GitHub bug tracker. We are starting another firmware push now and bug fixes will be brought in.
by kwagyeman
Wed Jul 17, 2019 1:52 pm
Forum: General Topics
Topic: What is the simplest way to create my own python function ?
Replies: 7
Views: 2802

Re: What is the simplest way to create my own python function ?

Um, so there are a lot of Pull Requests that you can look at done by me that show how to add methods. It's not really hard. See the closed Pull Requests in the OpenMV GitHub. You can see exactly what changes are needed there.
by kwagyeman
Wed Jul 17, 2019 1:48 pm
Forum: Project Discussion
Topic: Project Idea: Automatically point camera at target
Replies: 15
Views: 3212

Re: Project Idea: Automatically point camera at target

Okay, I'll post a firmware tonight for you.
by kwagyeman
Wed Jul 17, 2019 1:47 pm
Forum: Technical Discussion
Topic: First time with servos not going well
Replies: 4
Views: 1619

Re: First time with servos not going well

I can probably comment on this on the product page.

Go to advanced search