Search found 3209 matches

by kwagyeman
Fri Aug 23, 2019 3:21 am
Forum: Technical Discussion
Topic: Find Dominant Color in a region
Replies: 2
Views: 617

Re: Find Dominant Color in a region

Use the get_stats() method with an ROI set to the area. Then return the mode state which is the dominant color.
by kwagyeman
Thu Aug 22, 2019 1:32 am
Forum: General Topics
Topic: The white balance
Replies: 3
Views: 2523

Re: The white balance

Yes, just do:

sensor.set_auto_white_bal(False)

Immediately after resetting the sensor.

http://docs.openmv.io/library/omv.senso ... o_whitebal
by kwagyeman
Wed Aug 21, 2019 12:58 am
Forum: Project Discussion
Topic: OpenMV M7 CAD model
Replies: 3
Views: 4402

Re: OpenMV M7 CAD model

mutronics, would you be interested in making a model for the H7? We'd offer to help pay for it to be made. A lot of folks are asking about an H7 model.
by kwagyeman
Wed Aug 21, 2019 12:56 am
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Timer1 is the only one that's necessary for the camera. 5 and 4 are available for PWM. Timer 2 is available to. I don't know about the other timers. We borrow a lot of code from MicroPython that kinda just works so I can't say exactly what's in use and not beyond the ones that are obviously used by ...
by kwagyeman
Tue Aug 20, 2019 1:37 am
Forum: Technical Discussion
Topic: OpenMV Not being detected
Replies: 7
Views: 5779

Re: OpenMV Not being detected

You just upload it via the Attachments tab next to the options tab.
by kwagyeman
Tue Aug 20, 2019 1:19 am
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Okay, Addding: P10,PD15 P11,PA13 P12,PA14 P13,PA0 P14,PA1 P15,PA2 P16,PA3 To: https://github.com/openmv/micropython/blob/f31c61e4dcac3b2e67f7a21411e2750d87061f58/ports/stm32/boards/OPENMV4/pins.csv Makes the new pins available. You can toggle them and whatever now. This also enabled you to use timer...
by kwagyeman
Tue Aug 20, 2019 12:30 am
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Please understand I answer most of these support questions on my phone during work. I'm not in font of my OpenMV development computer. This limits what I can respond with.
by kwagyeman
Mon Aug 19, 2019 11:28 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

K, I'll added support for the GPIOs and leave notes here on what I did to do it. I think I should be able to add more PWM too and I'll add notes for that too. It's all changes to MP code so it shouldn't be too hard. They autogenerate a lot of stuff and there's no documentation on it... So, I just ha...
by kwagyeman
Mon Aug 19, 2019 11:12 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Hi Cat, I'll sit down and try to get you a firmware image tonight with new GPIO pins added. A question however, I've never used any other product where I got support tickets answered the day of by the creator and feature requests considered. I don't understand your expectation that your request woul...
by kwagyeman
Mon Aug 19, 2019 5:03 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Mmm, this file might be it: https://github.com/openmv/micropython/blob/openmv/ports/stm32/boards/OPENMV4/pins.csv It's in the MicroPython submodule in the main firmware. Adding the new pins to it should create the Python parts when you do a rebuild of the firmware. You can find the build instruction...
by kwagyeman
Mon Aug 19, 2019 4:57 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Note that the STM32 registers are directly accessible via python using the stm module. You can so: import stm stm.mem32[0x........] = ... To directly set a register in RAM. Using this you can do direct GPIO control by looking up the correct registers in the STM32H7 reference manual. Doing anything m...
by kwagyeman
Mon Aug 19, 2019 4:54 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Hi Cat, I have a day job and don't get much time to actually write code anymore because I have to answer various help support emails along with other things in my time to run the OpenMV project. Depending on me to modify the firmware to support this type of stuff was fine when the project started bu...
by kwagyeman
Mon Aug 19, 2019 3:28 pm
Forum: Technical Discussion
Topic: Motor and LCD Shield conflicting
Replies: 25
Views: 4550

Re: Motor and LCD Shield conflicting

Me and Ibrahim have like zero time to focus on small adds like this. We really need our users to support the open source project but sending in commits to enable things like this. As for the GPIOs to enable these... Um, it's not that easy. Direct HAL access is easy but MicroPython has a lot of code ...
by kwagyeman
Mon Aug 19, 2019 2:29 am
Forum: Technical Discussion
Topic: Using OpenMV camera with normal python 3 ?
Replies: 6
Views: 3089

Re: Using OpenMV camera with normal python 3 ?

It doesn't support normal python because it's a microcontroller...
by kwagyeman
Mon Aug 19, 2019 2:28 am
Forum: Technical Discussion
Topic: Green isn't green?
Replies: 5
Views: 1605

Re: Green isn't green?

You just do blob.cx() to get the cx(). All the properties are method functions.
by kwagyeman
Mon Aug 19, 2019 2:27 am
Forum: Technical Discussion
Topic: OpenMV Not being detected
Replies: 7
Views: 5779

Re: OpenMV Not being detected

Hmm, that's hardware damage. Can you post a pic?
by kwagyeman
Sun Aug 18, 2019 3:37 pm
Forum: Technical Discussion
Topic: OpenMV Not being detected
Replies: 7
Views: 5779

Re: OpenMV Not being detected

Hmm, you don't get any sounds with Windows or anything else? The USB pins may not have been soldered right. On the cameras we make we check that they work at the factory... Try this, on Windows, connect the BOOT0 and 3.3V pin. Then plug into the PC. There should be a device that appears under the de...
by kwagyeman
Sun Aug 18, 2019 3:31 pm
Forum: Technical Discussion
Topic: Green isn't green?
Replies: 5
Views: 1605

Re: Green isn't green?

You have to turn off white balance faster than 2 seconds. I.e. remove the skip frames call. You have to turn it off immediately.

As for that bug, yes, that's a bug. Can you open a GitHub issue on that? Thanks for finding it.
by kwagyeman
Sun Aug 18, 2019 10:34 am
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 11
Views: 4403

Re: Minimal detect AprilTag (don't need tag ID) with better range?

I finished the OV2640 driver with jpeg support last night. I will start on the DRAM camera support now. We have the hardware in hand. I just have to work through things now. The OV5640 driver is also almost already done.
by kwagyeman
Sun Aug 18, 2019 10:33 am
Forum: Technical Discussion
Topic: OpenMV Not being detected
Replies: 7
Views: 5779

Re: OpenMV Not being detected

Sounds like the camera is fine. Are you sure the USB cable you are using supplies data and power? There are a lot of power only USB cables out there.
by kwagyeman
Sun Aug 18, 2019 10:32 am
Forum: Technical Discussion
Topic: Green isn't green?
Replies: 5
Views: 1605

Re: Green isn't green?

Hi, you have to turn off white balance immediately. White balance will change the color gains of everything in the image to make it appear gray. If there's a lot of green in the image this will result in the green being changed to another tone.
by kwagyeman
Fri Aug 16, 2019 8:11 pm
Forum: Project Discussion
Topic: Minimal detect AprilTag (don't need tag ID) with better range?
Replies: 11
Views: 4403

Re: Minimal detect AprilTag (don't need tag ID) with better range?

I'm working on the H7 with DRAM right now. I need to finish JPEG support for the OV2640 and OV5640. The dram camera will ship with the OV5640 5MP camera.
by kwagyeman
Fri Aug 16, 2019 11:08 am
Forum: Project Discussion
Topic: Detect a candle fire using OpenMV H7 and FLIR
Replies: 21
Views: 16299

Re: Detect a candle fire using OpenMV H7 and FLIR

Switch to grayscale. The temperature mapping is quite explicit. Each shade of grayscale is a temperature. See the example scripts for how the mapping works. Once you do that set the thresholds for find_blobs() to be extremely precise for an exact temperature range.
by kwagyeman
Thu Aug 15, 2019 12:17 pm
Forum: Technical Discussion
Topic: Connectivity issues
Replies: 10
Views: 3095

Re: Connectivity issues

Got it.
by kwagyeman
Thu Aug 15, 2019 12:13 pm
Forum: Project Discussion
Topic: Detect a candle fire using OpenMV H7 and FLIR
Replies: 21
Views: 16299

Re: Detect a candle fire using OpenMV H7 and FLIR

It looks like you have the basic idea of what to do. What's the problem? I can't really help you figure out what temperature range kin and max works the best. That's something you have to do. But, I think you are on the right path. If you do everything in grayscale mode you can then use find_blobs()...
by kwagyeman
Wed Aug 14, 2019 11:56 am
Forum: Technical Discussion
Topic: Connectivity issues
Replies: 10
Views: 3095

Re: Connectivity issues

Hi, I didn't get an email yet.
by kwagyeman
Wed Aug 14, 2019 11:50 am
Forum: General Topics
Topic: Two Issues about autostart
Replies: 29
Views: 11096

Re: Two Issues about autostart

I think Ibrahim put a fix in for this on github.
by kwagyeman
Wed Aug 14, 2019 11:50 am
Forum: General Topics
Topic: The white balance
Replies: 3
Views: 2523

Re: The white balance

White balance is on by default for the camera modules. You should turn it off for color tracking. If white balance is not used the image colors will look off given the environment.
by kwagyeman
Wed Aug 14, 2019 11:48 am
Forum: Technical Discussion
Topic: Reduced Resolution WVGA modes for the MT9V034
Replies: 2
Views: 2129

Re: Reduced Resolution WVGA modes for the MT9V034

Um, you've have to edit the firmware to do this. It's pretty easy to. Once you have the build system setup just add a new resolution mode and a QSTRING for it and you're done: https://github.com/openmv/openmv/blob/master/src/omv/sensor.c#L36 https://github.com/openmv/openmv/blob/master/src/omv/senso...
by kwagyeman
Mon Aug 12, 2019 5:52 pm
Forum: General Topics
Topic: M7 crashes under Vin but works fine with USB
Replies: 16
Views: 4776

Re: M7 crashes under Vin but works fine with USB

CAN still doesn't work on the H7. I guess probably have to get it working...
by kwagyeman
Sat Aug 10, 2019 9:55 am
Forum: Technical Discussion
Topic: Reading data via ADC from temperature sensor
Replies: 9
Views: 2530

Re: Reading data via ADC from temperature sensor

Hmmm, I remember the ADC for the H7 being fixed but maybe it's just broken right now and there's a github issue on it. Ibrahim is looking into this. The latest firmware is attached.

Question, can you power the sensor for the 3.3v pin from the OpenMV Cam? I remember the ADC being fixed before.
by kwagyeman
Fri Aug 09, 2019 11:25 am
Forum: Technical Discussion
Topic: Reading data via ADC from temperature sensor
Replies: 9
Views: 2530

Re: Reading data via ADC from temperature sensor

No, it's just the method is broken in the H7 firmware. If you see our GitHub history we put a fix in for this so it must not be in the built firmware yet.

Maybe Ibrahim can build the firmware for you. I am on a trip but have my laptop with me. I can build it and post tonight.
by kwagyeman
Fri Aug 09, 2019 10:47 am
Forum: Technical Discussion
Topic: Reading data via ADC from temperature sensor
Replies: 9
Views: 2530

Re: Reading data via ADC from temperature sensor

Use the run bootloader feature to install this: https://github.com/openmv/openmv/blob/m ... rmware.bin

The fix may be in the firmware.
by kwagyeman
Fri Aug 09, 2019 9:33 am
Forum: Technical Discussion
Topic: Reading data via ADC from temperature sensor
Replies: 9
Views: 2530

Re: Reading data via ADC from temperature sensor

Hi, the ADC may be broken in the latest firmware available. I think Ibrahim put a fix in for this but we haven't released anything in a while. Um, if you can build the firmware you can get the fix now. Otherwise I have to get home to make that fix.
by kwagyeman
Tue Aug 06, 2019 1:33 pm
Forum: General Topics
Topic: Openmv AprilTag--Out of fast Frame Buffer Stack Memory!
Replies: 3
Views: 1179

Re: Openmv AprilTag--Out of fast Frame Buffer Stack Memory!

Mmm, I'm not sure what the error is. I'd just do this for now, wrap the call in a try except block and just ignore the error when it happens. The memory allocation footprint of apriltags is constant... so, the only reason I can think you are getting this error is because of the changing roi settings.
by kwagyeman
Tue Aug 06, 2019 1:31 pm
Forum: Technical Discussion
Topic: How to build .network file?
Replies: 1
Views: 952

Re: How to build .network file?

Hi, the tutorial for making one is here: https://github.com/openmv/openmv/tree/master/ml/cmsisnn
by kwagyeman
Tue Aug 06, 2019 1:31 pm
Forum: Technical Discussion
Topic: Connectivity issues
Replies: 10
Views: 3095

Re: Connectivity issues

Hi, the unit is damaged. Can you email us with the receipt of where you bought it from?
by kwagyeman
Tue Aug 06, 2019 1:03 am
Forum: General Topics
Topic: Openmv AprilTag--Out of fast Frame Buffer Stack Memory!
Replies: 3
Views: 1179

Re: Openmv AprilTag--Out of fast Frame Buffer Stack Memory!

Note sure why you are getting the error. Once suggestion. Limit the minimum ROI size to 32x32 pixels. There's no lower limit on your math right now. This can cause issues.
by kwagyeman
Mon Aug 05, 2019 6:38 pm
Forum: Technical Discussion
Topic: Collision Avoidance
Replies: 1
Views: 725

Re: Collision Avoidance

I don't think this is easy to do without some type of deep learning approach. I'd recommend instead to add some Ultra Sonic or 1d range sensors around the car and just avoid anything they see.
by kwagyeman
Sun Aug 04, 2019 11:37 pm
Forum: Technical Discussion
Topic: Communication between OpenMV and ROS
Replies: 5
Views: 2785

Re: Communication between OpenMV and ROS

It's hard to put ROS integration in the examples because it's really just host driver software. The code on the camera is trivial (which is what the IDE will run). However, if you Google OpenMV and ROS there are a few projects to choose to use from.
by kwagyeman
Fri Aug 02, 2019 12:06 pm
Forum: General Topics
Topic: Size of usb key mounted as openmv
Replies: 6
Views: 1574

Re: Size of usb key mounted as openmv

Why not use an SD card?
by kwagyeman
Thu Aug 01, 2019 3:08 pm
Forum: Project Discussion
Topic: is there any kalman filter program ?
Replies: 3
Views: 1134

Re: is there any kalman filter program ?

No, we don't have one. The kalman filter requires you have a model of the thing you are tracking. It's pretty much application specific. If you want to use on you have to write it yourself.
by kwagyeman
Thu Aug 01, 2019 1:58 pm
Forum: General Topics
Topic: Size of usb key mounted as openmv
Replies: 6
Views: 1574

Re: Size of usb key mounted as openmv

Flash doesn't allow random modifications. Whenever you want to set a previously set 0 bit to 1 you have to erase the entire flash page and then re-write it. So, to allow this when you write anything we have to suck in the entire flash into RAM, do the modification in RAM, and then erase the flash, a...
by kwagyeman
Thu Aug 01, 2019 1:55 pm
Forum: Project Discussion
Topic: is there any kalman filter program ?
Replies: 3
Views: 1134

Re: is there any kalman filter program ?

Hi, the Kalman filter is just general purpose math you can write in python code. It's not OpenMV specific.
by kwagyeman
Thu Aug 01, 2019 1:54 pm
Forum: General Topics
Topic: H7 compilation
Replies: 5
Views: 1247

Re: H7 compilation

I just use printf() and OpenMV IDE. I'm basic.
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: 1932

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

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

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: 16
Views: 4776

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: 16
Views: 4776

Re: M7 crashes under Vin but works fine with USB

Ibrahim can you increase the stack on the M4 and M7?

Go to advanced search