Search found 3727 matches

by kwagyeman
Sat Nov 30, 2019 3:29 pm
Forum: Project Discussion
Topic: Timing and 4 sets of data
Replies: 3
Views: 314

Re: Timing and 4 sets of data

Typically, folks post to the forums. It's all searchable via google. So, it's not hard to find when folks want to find it. Otherwise, post on Hackaday or elsewhere to show off the project.

Me/Ibrahim don't really have much time to stand up anything else except to keep the company running.
by kwagyeman
Sat Nov 30, 2019 3:28 pm
Forum: Technical Discussion
Topic: Debugging OpenMV4 firmware
Replies: 6
Views: 603

Re: Debugging OpenMV4 firmware

Hi, um, so, I get that you are struggling through this... but, MicroPython has no hooks in it to integrate into STM32Cube. This is actually a pain for us too... but, me and Ibrahim mainly just debug the old school way using printf() and seeing that output in OpenMV IDE. You can use OpenMV IDE to loa...
by kwagyeman
Sat Nov 30, 2019 3:21 pm
Forum: Project Discussion
Topic: Detect movement and direction
Replies: 8
Views: 718

Re: Detect movement and direction

Hi, I see your issue. Sorry, it was Thanks Giving in the USA. Um, so, you have to write something called object filtering. Basically, you have to have a model for the world and then only track things that fit that model. Basically, you need to output a list of candidate blobs from the CV stuff and t...
by kwagyeman
Sat Nov 30, 2019 3:14 pm
Forum: Project Discussion
Topic: Suit and value detection
Replies: 1
Views: 274

Re: Suit and value detection

Mmm, this is not something we can probably do easily for you. Sorry,
by kwagyeman
Sat Nov 30, 2019 3:12 pm
Forum: Project Discussion
Topic: Timing and 4 sets of data
Replies: 3
Views: 314

Re: Timing and 4 sets of data

Hi, find_blobs() returns a list of color blobs in the image matching a set of thresholds you want to track. Once you have these blobs you have the centroid of the x and y position of each. The angle between the two blobs is just math.atan2(y1-y2,x1-x2). The angular velocity is then the rate of chang...
by kwagyeman
Thu Nov 28, 2019 1:36 pm
Forum: Technical Discussion
Topic: Debugging OpenMV4 firmware
Replies: 6
Views: 603

Re: Debugging OpenMV4 firmware

Because MicroPython didn't make their code base compatible with STM32Cube our firmware is not compatible with STM32Cube.
by kwagyeman
Thu Nov 28, 2019 2:15 am
Forum: Technical Discussion
Topic: Updated TensorFlow Lib for H7
Replies: 2
Views: 399

Re: Updated TensorFlow Lib for H7

Hi all,

Here's a version of the latest OpenMV Cam H7 firmware with CONV_2D now working.
by kwagyeman
Wed Nov 27, 2019 8:09 pm
Forum: Project Discussion
Topic: Egg Detection
Replies: 2
Views: 338

Re: Egg Detection

The best thing to do would be to look to see if the blob is elongated and then just count it as two in that case. We have a method that returns an elongation score. Just use that and threshold the score to decide between counting a blob as 1 or 2.
by kwagyeman
Wed Nov 27, 2019 12:57 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

For Mobilenet, the script that makes it is here: https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.py For running mobilenet I just used the quanitized version here: https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md Mobilenet only fits ...
by kwagyeman
Tue Nov 26, 2019 2:59 pm
Forum: Project Discussion
Topic: Help with code date
Replies: 7
Views: 514

Re: Help with code date

K, that's pretty easy. Um, if lighting is constant I'd do blob tracking. Just use canny edge detection (search int he API for it) and then use get_stats() and compare the stats of an object without a date code to one with a date code. You should see a vast difference.
by kwagyeman
Tue Nov 26, 2019 1:56 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

Hi, to be honest I'm not more familiar with this than you. We are kinda depending on Google here now. I would do this, only use ops used by mobilenet-v1 (I've run Mobilenet v1 on the camera and it works). This way you are using the supported ops they have rolled out so far. I can easily update our c...
by kwagyeman
Tue Nov 26, 2019 1:51 pm
Forum: General Topics
Topic: OV2640 module for H7 cam
Replies: 22
Views: 1884

Re: OV2640 module for H7 cam

Yes? Not sure what you are asking.
by kwagyeman
Tue Nov 26, 2019 1:50 pm
Forum: Project Discussion
Topic: Help with code date
Replies: 7
Views: 514

Re: Help with code date

Hi, 400 pictures a second is not possible to process. If you use multiple cameras what's the minimum fps each could run at? Better techniques are available as you decrease the frame rate.
by kwagyeman
Mon Nov 25, 2019 2:18 pm
Forum: Technical Discussion
Topic: Latest Firmware and Global Shutter Camera
Replies: 3
Views: 286

Re: Latest Firmware and Global Shutter Camera

Oh, I see. I would check what exposure you are running at. You have to tell the camera to lower the minimum exposure otherwise it will always want to expose for a minimum length of time.
by kwagyeman
Mon Nov 25, 2019 1:00 pm
Forum: Technical Discussion
Topic: Latest Firmware and Global Shutter Camera
Replies: 3
Views: 286

Re: Latest Firmware and Global Shutter Camera

Hi, nothing has changed for a while. Did you make your own hardware?
by kwagyeman
Mon Nov 25, 2019 11:37 am
Forum: General Topics
Topic: OV2640 module for H7 cam
Replies: 22
Views: 1884

Re: OV2640 module for H7 cam

We just send it 3.3v. The sensor will only be damaged if the voltage difference is above 0.7v.
by kwagyeman
Sun Nov 24, 2019 10:07 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

Here's the binary for the H7 which prints the error in the console:

https://forums.openmv.io/viewtopic.php? ... 9774#p9774
by kwagyeman
Sun Nov 24, 2019 10:06 pm
Forum: Technical Discussion
Topic: Updated TensorFlow Lib for H7
Replies: 2
Views: 399

Re: Updated TensorFlow Lib for H7

Hi all,

Here's the binary for the H7 with error messages handled correctly such that the IDE shows exactly what is wrong.

PR here: https://github.com/openmv/openmv/pull/643
by kwagyeman
Sun Nov 24, 2019 7:39 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

Looks like CONV_2D version 1 to 3 was supported and then removed or something: https://github.com/openmv/tensorflow/co ... 49df729e31
by kwagyeman
Sun Nov 24, 2019 7:21 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

This has some info about this:

https://www.tensorflow.org/lite/guide/ops_version

It looks like if you use anything more than basic features you get this issue.
by kwagyeman
Sun Nov 24, 2019 6:35 pm
Forum: Technical Discussion
Topic: I have a problem on Memory?
Replies: 1
Views: 211

Re: I have a problem on Memory?

What's the code that is throwing the error?
by kwagyeman
Sun Nov 24, 2019 6:32 pm
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

Hi, the error was in the serial terminal: >>> Didn't find op for builtin opcode ' CONV_2D ' version ' 3 ' Failed to get registration from op code d AllocateTensors() failed! You have an op that isn't supported. https://github.com/openmv/tensorflow/blob/master/tensorflow/lite/experimental/micro/kerne...
by kwagyeman
Sun Nov 24, 2019 10:47 am
Forum: Technical Discussion
Topic: Regarding Model Classification Failed Error
Replies: 12
Views: 863

Re: Regarding Model Classification Failed Error

Hi, I will be able to answer this later in the day. However, can you copy and paste the output of your serial terminal in the IDE here? The actual error will be printed out in the grayed out section of the serial terminal as the error messages from TensorFlow look like standard debug text right now.
by kwagyeman
Sun Nov 24, 2019 10:45 am
Forum: Technical Discussion
Topic: Can use OCR model on OpenMV?
Replies: 2
Views: 294

Re: Can use OCR model on OpenMV?

You have to fit the model in SRAM on the OpenMV Cam H7. This means the model cannot be too big. If it fits then it should work.
by kwagyeman
Sun Nov 24, 2019 10:43 am
Forum: Technical Discussion
Topic: OpenMV-IDE on Jetson Nano
Replies: 5
Views: 376

Re: OpenMV-IDE on Jetson Nano

The IDE works fine on desktop computers. I don't have a Jetson nano to run it on.
by kwagyeman
Sat Nov 23, 2019 7:00 pm
Forum: Technical Discussion
Topic: optimized firmware for different models?
Replies: 3
Views: 261

Re: optimized firmware for different models?

Sorry, I wrote the above hastily. The RAM isn't what we are out of. It's the flash. The H7 and M7 have 2 MB of flash. The M4 has 1 MB. Because if this we had to remove a lot of features from the M4. Regarding RAM onboard. That's basically been static but we've had to slightly reduced the size of hea...
by kwagyeman
Sat Nov 23, 2019 5:14 pm
Forum: Technical Discussion
Topic: optimized firmware for different models?
Replies: 3
Views: 261

Re: optimized firmware for different models?

Um, for the OpenMV Cam M4 we just ran out of resources. We had to turn off firmware features in the flash and the RAM is just so limited. Please upgrade. We have tried to keep that model working but the RAM limits are just too much.
by kwagyeman
Sat Nov 23, 2019 2:38 pm
Forum: Technical Discussion
Topic: OpenMV-IDE on Jetson Nano
Replies: 5
Views: 376

Re: OpenMV-IDE on Jetson Nano

You're on Linux... It's like you have to figure it out yourself. That's the Linux experience. I have no idea what could be wrong.
by kwagyeman
Sat Nov 23, 2019 10:57 am
Forum: Technical Discussion
Topic: Process for building custom a model, training it, and deploying it to the OpenMV Cam H7
Replies: 22
Views: 7983

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

Can you verify that your input is an 8 bit unit or int and output is an 8 bit unit or int? This is probably not the case if you are getting that error.
by kwagyeman
Fri Nov 22, 2019 2:53 am
Forum: Technical Discussion
Topic: Updated TensorFlow Lib for H7
Replies: 2
Views: 399

Updated TensorFlow Lib for H7

We received interest from some folks who wanted the latest tensorflow ops and for us to support more model types. Here's a quick update for the H7. MUL, RELU, and RELU6 layers are now added along with more variants of model input types being supported. Error messages are still printed in the console...
by kwagyeman
Fri Nov 22, 2019 1:48 am
Forum: Technical Discussion
Topic: Unable to launch OpenMV IDE on Raspberry Pi raspbian
Replies: 5
Views: 531

Re: Unable to launch OpenMV IDE on Raspberry Pi raspbian

I have no idea what's wrong since you didn't specify the error... You are just asking vacuously for help. Please ask a specific question.
by kwagyeman
Fri Nov 22, 2019 1:47 am
Forum: General Topics
Topic: Memory allocation
Replies: 3
Views: 311

Re: Memory allocation

Okay, um, can you do this... wrap your code in try: except: and then in the except write the error message to a disk. Then you should be able to see what line fails... Also, if you use try: except: as long as there was no memory corruption you typically can keep on running.
by kwagyeman
Thu Nov 21, 2019 12:33 pm
Forum: Technical Discussion
Topic: Global Shutter Camera Module with higher fps for small ROI
Replies: 2
Views: 280

Re: Global Shutter Camera Module with higher fps for small ROI

Hi, yes, but our driver doesn't support it. You have to manually do register writes to the camera for this. You can do this all through the Python API but you need to read the sensor data sheet to achieve what you want. Please go the product page and see the sensor data sheet. Then find the mt9v034....
by kwagyeman
Thu Nov 21, 2019 12:28 pm
Forum: Project Discussion
Topic: Multiple Mouse Tracking
Replies: 2
Views: 379

Re: Multiple Mouse Tracking

You just need good lighting, color tracking, and some high contrast over saturated color to track. The color you pick and the lighting are key.
by kwagyeman
Thu Nov 21, 2019 12:27 pm
Forum: General Topics
Topic: Memory allocation
Replies: 3
Views: 311

Re: Memory allocation

Is it possible for you to make the error case more simple in your code so it's possible to find? Like, can you give us a snippet that's causes the error so we can easily fix it?
by kwagyeman
Thu Nov 21, 2019 12:25 pm
Forum: Technical Discussion
Topic: OpenMV-IDE on Jetson Nano
Replies: 5
Views: 376

Re: OpenMV-IDE on Jetson Nano

Oh, yeah, we only have a 32-bit IDE for the ARM. You should install the 32-bit libraries to your system to be able to run the IDE.
by kwagyeman
Wed Nov 20, 2019 6:56 pm
Forum: Technical Discussion
Topic: tflite image classification out of memory
Replies: 1
Views: 184

Re: tflite image classification out of memory

Hi, don’t load the model into the heap, please use the version which loads the model into the frame buffer. I.e. don’t use the “load” method. I document this pretty clearly in the API docs that the load method while nice is basically useless unless the model is really small. Just do tf.classify(“/pa...
by kwagyeman
Wed Nov 20, 2019 10:58 am
Forum: General Topics
Topic: OV2640 module for H7 cam
Replies: 22
Views: 1884

Re: OV2640 module for H7 cam

Yes, the driver for it still needs work.
by kwagyeman
Wed Nov 20, 2019 2:12 am
Forum: Technical Discussion
Topic: I2C Communication
Replies: 5
Views: 405

Re: I2C Communication

The camera will continue to execute whatever script it is running when disconnected from the IDE until it loses power. Then on startup if not connected to the IDE it will run main.py.
by kwagyeman
Tue Nov 19, 2019 8:27 pm
Forum: General Topics
Topic: mjpeg file
Replies: 7
Views: 556

Re: mjpeg file

It's not an error so much as we just don't output a chunk that the software expects. There's no AVI standard so I just tried to do what I could dig up documentation wise.
by kwagyeman
Mon Nov 18, 2019 2:16 pm
Forum: General Topics
Topic: mjpeg file
Replies: 7
Views: 556

Re: mjpeg file

I probably have to add a chunk to the file that has an index. I don't know what such a chunk looks like however.
by kwagyeman
Sun Nov 17, 2019 4:47 pm
Forum: Technical Discussion
Topic: Process for building custom a model, training it, and deploying it to the OpenMV Cam H7
Replies: 22
Views: 7983

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

Hi, the error text would be printed above that. Please look at the text that's printed out in your terminal. TensorFlow ouputs an error via printf before the exception is caught by my code. The IDE has no way of knowing the TensorFlow error is not normal output text so it will be a bit up the log. P...
by kwagyeman
Sat Nov 16, 2019 5:23 pm
Forum: Project Discussion
Topic: How to send coordinate to arduino nano?
Replies: 4
Views: 443

Re: How to send coordinate to arduino nano?

It can be an I2C slave but it's quite hard to use it this way. This is because it will generally miss I2C transactions unless you have it do nothing but wait for a transaction to do something. You can only get it to process video and compute stuff and send results to a master device if you use the U...
by kwagyeman
Sat Nov 16, 2019 1:40 pm
Forum: Technical Discussion
Topic: Beginner Assistance - taking aerial photos
Replies: 3
Views: 331

Re: Beginner Assistance - taking aerial photos

# Snapshot Example # # Note: You will need an SD card to run this example. # # You can use your OpenMV Cam to save image files. import sensor, image, pyb RED_LED_PIN = 1 BLUE_LED_PIN = 3 sensor.reset() # Initialize the camera sensor. sensor.set_pixformat(sensor.RGB565) # or sensor.GRAYSCALE sensor....
by kwagyeman
Sat Nov 16, 2019 1:37 pm
Forum: Project Discussion
Topic: How to send coordinate to arduino nano?
Replies: 4
Views: 443

Re: How to send coordinate to arduino nano?

Please use the UART on the OpenMV Cam and software serial on your nano to receive data. The OpenMV Cam can only be a decent I2C master and Arduino's aren't good at being I2C slaves.
by kwagyeman
Sat Nov 16, 2019 1:33 pm
Forum: Technical Discussion
Topic: Process for building custom a model, training it, and deploying it to the OpenMV Cam H7
Replies: 22
Views: 7983

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

Hi, I can't say why your model doesn't work. I've run the code on mobilenet and the person detector model from Google. Did you follow this tutorial? https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/examples/person_detection/training_a_model.md In particular, yo...
by kwagyeman
Sat Nov 16, 2019 1:27 pm
Forum: Technical Discussion
Topic: black_hat with non symmetric kernel
Replies: 5
Views: 352

Re: black_hat with non symmetric kernel

Yeah, probably. I don't know how that code works however. We were just asked to include it.
by kwagyeman
Sat Nov 16, 2019 1:26 pm
Forum: General Topics
Topic: Difference between OpenMV CAM M7 vs M4
Replies: 3
Views: 1519

Re: Difference between OpenMV CAM M7 vs M4

The M4 has 1MB of flash, the M7 has 2MB of flash. We ran out of flash on the M4 to fit code.

See this:

https://github.com/openmv/openmv/blob/m ... b_config.h
by kwagyeman
Sat Nov 16, 2019 12:57 pm
Forum: Technical Discussion
Topic: black_hat with non symmetric kernel
Replies: 5
Views: 352

Re: black_hat with non symmetric kernel

It's not hard to do. But, I don't have the time to modify the API for this. If you want to do it please send a PR for the C code edits. Right now the code just does a square.

Go to advanced search