Search found 3999 matches

by kwagyeman
Fri May 29, 2020 11:49 am
Forum: Technical Discussion
Topic: RGB RAW values
Replies: 11
Views: 278

Re: RGB RAW values

Tools->Run Bootloader and select the file.
by kwagyeman
Thu May 28, 2020 3:20 pm
Forum: Technical Discussion
Topic: RGB RAW values
Replies: 11
Views: 278

Re: RGB RAW values

M7 Firmware.
by kwagyeman
Thu May 28, 2020 12:17 pm
Forum: Project Discussion
Topic: Person Detection
Replies: 4
Views: 123

Re: Person Detection

I don't have an example with an I/O pin. However, there's a lot of examples on the camera already. It's not hard to just read the I/O pin state in python and then only run the the detection loop if the pin changes state. Please see the pyb.Pin module documentation. It's quite simple. Just gate the w...
by kwagyeman
Thu May 28, 2020 10:51 am
Forum: Project Discussion
Topic: Person Detection
Replies: 4
Views: 123

Re: Person Detection

Hi, the model we are using just detection if a person is in the image or not. The camera isn't really powerful enough to do anything other than image classification. Bounding box CNNs will come in the future. You can do this however... it will slow the FPS down by a huge amount. The algorithm has a ...
by kwagyeman
Thu May 28, 2020 10:47 am
Forum: Technical Discussion
Topic: RGB RAW values
Replies: 11
Views: 278

Re: RGB RAW values

What camera model do you have? I can generate the firmware binary.
by kwagyeman
Thu May 28, 2020 10:47 am
Forum: Technical Discussion
Topic: Logging to USB serial from firmware
Replies: 13
Views: 597

Re: Logging to USB serial from firmware

No, right now CMSIS-NN is not compiled in. All the defines needed for it to work are added.

If I try to enable it right now with TensorFlow you get hard crashes on the OpenMV Cam with memory corruption. The library is not ready to use yet. This is particularly hard to debug since it's not our code.
by kwagyeman
Thu May 28, 2020 1:54 am
Forum: Technical Discussion
Topic: RGB RAW values
Replies: 11
Views: 278

Re: RGB RAW values

by kwagyeman
Wed May 27, 2020 4:44 pm
Forum: Technical Discussion
Topic: RGB RAW values
Replies: 11
Views: 278

Re: RGB RAW values

In bayer mode there's no RGB888 tuple. The RAW bayer image is just grayscale basically with color in a bayer pattern. The concept of the RGB888 tuple doesn't make sense: int pixel = IMAGE_GET_GRAYSCALE_PIXEL(arg_img, arg_x, arg_y); // Correct! mp_obj_t pixel_tuple[3]; pixel_tuple[0] = mp_obj_new_int...
by kwagyeman
Wed May 27, 2020 1:49 pm
Forum: Technical Discussion
Topic: OSError:Failed to init the MLX90640!
Replies: 6
Views: 221

Re: OSError:Failed to init the MLX90640!

Yes, but, you need two pull up resistors (1K) from DA to 3.3v and SCL to 3.3v
by kwagyeman
Tue May 26, 2020 2:04 pm
Forum: Technical Discussion
Topic: Using binary function problem
Replies: 7
Views: 254

Re: Using binary function problem

Attached is a fixed binary for the M7.
by kwagyeman
Tue May 26, 2020 2:01 pm
Forum: Technical Discussion
Topic: Logging to USB serial from firmware
Replies: 13
Views: 597

Re: Logging to USB serial from firmware

Yes, we don't plan to keep that custom code anymore. We will fully switch to just TensorFlow support. TensorFlow has CMSIS-NN under the hood (that said, CMSIS-NN is still broken in TensorFlow, if you try to use it you get a hard crash with memory corruption, but, one day ARM will get their code work...
by kwagyeman
Tue May 26, 2020 1:30 pm
Forum: Technical Discussion
Topic: OSError:Failed to init the MLX90640!
Replies: 6
Views: 221

Re: OSError:Failed to init the MLX90640!

And do you have pull ups to 3.3v on SCL and SDA? You need them.
by kwagyeman
Tue May 26, 2020 1:29 pm
Forum: Technical Discussion
Topic: Logging to USB serial from firmware
Replies: 13
Views: 597

Re: Logging to USB serial from firmware

It should work. I'm guessing that method isn't executed then.

Also, the old CNN code is about to be removed. TensorFlow is working now. We will likely delete all that code once EdgeImpulse gets up and running.
by kwagyeman
Tue May 26, 2020 1:27 pm
Forum: Technical Discussion
Topic: Error when building the firmware with CubeAI
Replies: 3
Views: 124

Re: Error when building the firmware with CubeAI

You need to disable features to make it fit. See the imlib_config.h file and comment out things. Like, turn off the TF code (#define IMLIB_ENABLE_TF). That should make it fit. ... We don't really maintain that code path since ST just sent a PR to add it but hasn't really done much else there. I gues...
by kwagyeman
Mon May 25, 2020 1:58 pm
Forum: Technical Discussion
Topic: OSError:Failed to init the MLX90640!
Replies: 6
Views: 221

Re: OSError:Failed to init the MLX90640!

Are your I2C wires hooked up correctly with Pull ups? Can you list how those are attached? Also, are you using the latest firmware?
by kwagyeman
Mon May 25, 2020 1:23 pm
Forum: Technical Discussion
Topic: Logging to USB serial from firmware
Replies: 13
Views: 597

Re: Logging to USB serial from firmware

You just do printf() in the code and it goes to the IDE. If you are inside of our TensorFlow library you have to do: error_reporter->Report()
by kwagyeman
Sun May 24, 2020 11:56 pm
Forum: General Topics
Topic: Power requirements confirmation
Replies: 4
Views: 230

Re: Power requirements confirmation

Sent you an email.
by kwagyeman
Sun May 24, 2020 2:16 pm
Forum: General Topics
Topic: Power requirements confirmation
Replies: 4
Views: 230

Re: Power requirements confirmation

Please write less dense forum posts. ;)

The specs are for the total system. The LCD shield draws only a few mA.
by kwagyeman
Sun May 24, 2020 2:03 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5220

Re: Can't use Tensorflow-Lite for OpenMV

New H7 Firmware.
by kwagyeman
Sun May 24, 2020 12:44 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5220

Re: Can't use Tensorflow-Lite for OpenMV

Hi, I was able to run your model. The model gets the correct result. But, the TensorFlow vector output is not the same. RAW Output = [0.5019608, 0.5019608, 0.5369792, 0.9202359, 0.5019608, 0.544761, 0.5019608, 0.5019608, 0.5019608, 0.5019608] After SoftMax = [0.09435112, 0.09435112, 0.09771368, 0.14...
by kwagyeman
Sat May 23, 2020 5:51 pm
Forum: Technical Discussion
Topic: Using binary function problem
Replies: 7
Views: 254

Re: Using binary function problem

It will be fixed.
by kwagyeman
Sat May 23, 2020 5:51 pm
Forum: Technical Discussion
Topic: Using binary function problem
Replies: 7
Views: 254

Re: Using binary function problem

Hi, this is an issue with the M7 JPEG compression. The actual frame buffer is fine. But, when being jpeg compressed there seems to be an error.
by kwagyeman
Sat May 23, 2020 1:42 pm
Forum: Project Discussion
Topic: Flat Field Correction
Replies: 4
Views: 1690

Re: Flat Field Correction

Thanks for posting that info kwiley. Note: divide() works like the photoshop divide. It's not a pure numerical divide: https://en.wikipedia.org/wiki/Blend_modes. It's done in a different way as just dividing one image by another would yield 0 for all pixels generally. https://github.com/openmv/openm...
by kwagyeman
Sat May 23, 2020 2:29 am
Forum: General Topics
Topic: BAYER: two questions
Replies: 4
Views: 217

Re: BAYER: two questions

Was it...I mean...are you implying you *reBayered* the RGB image? The ISPs on the camera sensors do a lot of color map processing and etc. Processed bayer is literally a re-bayered image. It's there for software compatibility since OnmiVision makes sensors for cellphone cameras. The RAW bayer image...
by kwagyeman
Sat May 23, 2020 12:37 am
Forum: Technical Discussion
Topic: Color bars test is failing on H7P (3.6.3)
Replies: 1
Views: 102

Re: Color bars test is failing on H7P (3.6.3)

I'll check.

You can ignore that error however. Our self-test just checks the color bars to make sure the camera is working.
by kwagyeman
Sat May 23, 2020 12:34 am
Forum: General Topics
Topic: BAYER: two questions
Replies: 4
Views: 217

Re: BAYER: two questions

The preview in the IDE is a JPG image. So, the software onboard debayers the image, then converts it to YUV (this is done in one step) and then jpg compresses it to send it to the IDE. The raw data matrix is in bayer however. So, none of our CV functions can read the image. The camera sensor outputs...
by kwagyeman
Fri May 22, 2020 4:15 pm
Forum: General Topics
Topic: SD card name reverts to NO NAME
Replies: 3
Views: 194

Re: SD card name reverts to NO NAME

It's not OpenMV.
by kwagyeman
Fri May 22, 2020 2:19 pm
Forum: Technical Discussion
Topic: H7 image "blown out" by IR LEDs
Replies: 5
Views: 232

Re: H7 image "blown out" by IR LEDs

People haven't really been complaining that much about it. Other things to fix, so, we don't worry about it.

Also, it's not really an easy to fix issue. The IR light easily goes right through material that looks opaque to visible light. Black electrical tape works if you need a quick solution.
by kwagyeman
Fri May 22, 2020 2:17 pm
Forum: General Topics
Topic: SD card name reverts to NO NAME
Replies: 3
Views: 194

Re: SD card name reverts to NO NAME

I think that's what most OSes just format a cards name to. You should be able to set the name again. When you format the file system is destroys the name of the card.
by kwagyeman
Fri May 22, 2020 2:13 pm
Forum: General Topics
Topic: SD card not recognized
Replies: 7
Views: 324

Re: SD card not recognized

I will update the docs to say SXDC are supported now. Note for video recording we do not have a video fifo onboard. While we can write 25 MB/s to the SD Card the SD Card will still randomly start erasing when you are writing to it and it's allowed to block for up to 500 ms per the SD Card spec. To b...
by kwagyeman
Fri May 22, 2020 12:36 am
Forum: General Topics
Topic: SD card not recognized
Replies: 7
Views: 324

Re: SD card not recognized

It could be many things. It's not the card size. Either the card has a difficult to talk to I/O layer and our driver just fails to get block access working or the file system is slightly weird. Question, I've seen it take a while to mount the card on windows when the card is heavily corrupted. Can y...
by kwagyeman
Fri May 22, 2020 12:34 am
Forum: Technical Discussion
Topic: H7 image "blown out" by IR LEDs
Replies: 5
Views: 232

Re: H7 image "blown out" by IR LEDs

I think it's a hardware issue related to IR light going through the bottom of the camera board into the bottom of the sensor. You can fix this by putting black electrical tape under the sensor. The M7 had a similar issue when sunlight hit the back of it. We had fixed that with a black sticker. But, ...
by kwagyeman
Fri May 22, 2020 12:28 am
Forum: Technical Discussion
Topic: WIFI shield vs ESP8266
Replies: 4
Views: 136

Re: WIFI shield vs ESP8266

No, it's just harder as you have to write your own protocol.
by kwagyeman
Thu May 21, 2020 8:06 pm
Forum: Technical Discussion
Topic: How to read A5 sheet with 7mm QR codes?
Replies: 1
Views: 66

Re: How to read A5 sheet with 7mm QR codes?

You need the OpenMV Cam H7 Plus. The AprilTag algorithm requires a lot of RAM. If you want VGA resolution you need 8MB of RAM to process that image. The OpenMV Cam H7 Plus has enough to do so. Note that FPS will only be 1. That said, it can do it however. Also, you can probably go up to SXGA before ...
by kwagyeman
Thu May 21, 2020 8:04 pm
Forum: General Topics
Topic: 940nm IR sensitivity?
Replies: 2
Views: 84

Re: 940nm IR sensitivity?

The data sheet for the MT9V034 (Global Shutter Module) has a plot of the sensitivity of the sensor given wavelength. Anyway, 940nm will work. It's just a range issue. You will need a bright light source.

Also, don't use an IR filter on the lens.
by kwagyeman
Thu May 21, 2020 8:01 pm
Forum: Technical Discussion
Topic: WIFI shield vs ESP8266
Replies: 4
Views: 136

Re: WIFI shield vs ESP8266

Once we finish our RPC library for the Arduino then you can use that to link COMs between the OpenMV Cam and the ESP8266/32. Larry already wrote some of the Arduino code... But, I need to debug it.

The WiFi shield does 15 Mb/s transmit.
by kwagyeman
Thu May 21, 2020 7:59 pm
Forum: General Topics
Topic: Global Shutter Module stock
Replies: 1
Views: 41

Re: Global Shutter Module stock

Money is tight. We just sold the last modules to SparkFun. They will start distributing some of our addons. Right now, we have a whole bunch in our Hong Kong warehouse I can't access. So, the plan is to wait until I can access our larger stock of them. The border between Hong Kong and Shenzhen has b...
by kwagyeman
Thu May 21, 2020 7:55 pm
Forum: Technical Discussion
Topic: Automatic reload of a trained model
Replies: 3
Views: 92

Re: Automatic reload of a trained model

You need to edit the firmware yourself.
by kwagyeman
Thu May 21, 2020 7:55 pm
Forum: Technical Discussion
Topic: Using binary function problem
Replies: 7
Views: 254

Re: Using binary function problem

Will test on the M7.
by kwagyeman
Wed May 20, 2020 11:18 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5220

Re: Can't use Tensorflow-Lite for OpenMV

If you softmax the output. Our code doesn't do that for you. We just get 0-255 out from the library and then we divide that by 255 and then that's the float result.

Can you attach the trained model for me to run, along with 1 or two images? Thanks,
by kwagyeman
Wed May 20, 2020 11:11 pm
Forum: Technical Discussion
Topic: OV2640 cropping full resolution, registers
Replies: 1
Views: 65

Re: OV2640 cropping full resolution, registers

While it may not look like it from the code... we typically spends weeks of effort on getting drivers working. It's very hard.

Please check the OV5640 driver. It does what you want. Given the cameras are similar maybe you can get a hint from that code on how to control the OV2640.
by kwagyeman
Wed May 20, 2020 11:08 pm
Forum: Technical Discussion
Topic: Using binary function problem
Replies: 7
Views: 254

Re: Using binary function problem

Please post code to show the error. I just ran the example and it works fine.
by kwagyeman
Wed May 20, 2020 11:06 pm
Forum: Technical Discussion
Topic: Automatic reload of a trained model
Replies: 3
Views: 92

Re: Automatic reload of a trained model

With the TensofFlow module you just delete the model object from RAM and accept a new model.

How is the model getting onto the OpenMV Cam?
by kwagyeman
Wed May 20, 2020 11:05 pm
Forum: Technical Discussion
Topic: 100 fps H7+
Replies: 4
Views: 372

Re: 100 fps H7+

Sure, I'll post a video when I do it.
by kwagyeman
Wed May 20, 2020 11:05 pm
Forum: Technical Discussion
Topic: H7 Plus 1080p 30fps
Replies: 1
Views: 62

Re: H7 Plus 1080p 30fps

Yes and no.

If you set the readout window to 1920x1080 it will run at 30 FPS. However, the field of view will shrink. That said, getting the data off the camera is another issues. It's not a video camera optimized for recording. We can take snapshots fine.
by kwagyeman
Wed May 20, 2020 11:03 pm
Forum: Project Discussion
Topic: Robot Obstacle Avoidance
Replies: 1
Views: 87

Re: Robot Obstacle Avoidance

Yes, what computer vision method do you plan to use. I.e. how do you envision seeing the object? Typically there needs to be a feature you are looking for.
by kwagyeman
Wed May 20, 2020 1:41 am
Forum: Technical Discussion
Topic: Training on the OpenMV IDE
Replies: 1
Views: 108

Re: Training on the OpenMV IDE

OpenMV IDE is for controlling the OpenMV Cam. It doesn't do machine learning.
by kwagyeman
Wed May 20, 2020 1:41 am
Forum: Technical Discussion
Topic: WIFI Shield DMA support
Replies: 2
Views: 115

Re: WIFI Shield DMA support

Performance should be in the 15 Mb/s range now. The performance was bad before because the firmware would wait for an ACK per packet. It no longer does.
by kwagyeman
Wed May 20, 2020 1:40 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5220

Re: Can't use Tensorflow-Lite for OpenMV

Should be 0-255. However, you need to match the color of the binary data with MNIST. So, if it's black on white then 0 and 255. If it's white on black then 255 and 0.

Go to advanced search