Search found 3999 matches

by kwagyeman
Wed Apr 29, 2020 10:10 pm
Forum: Technical Discussion
Topic: What is the lowest resolution of the camera?
Replies: 9
Views: 1902

Re: What is the lowest resolution of the camera?

Sorry, you need to combine what both scripts do the camera. high_fps.py gets high fps because it allows the exposure to be really short. Triggered mode just forces the camera to expose in sync with the OpenMV Cam.
by kwagyeman
Wed Apr 29, 2020 9:38 pm
Forum: Technical Discussion
Topic: What is the lowest resolution of the camera?
Replies: 9
Views: 1902

Re: What is the lowest resolution of the camera?

1. No, the sensor only supports binning at 4x4 from it's max res. So, after 160x120 any speed ups are from cropping. 2. Put the camera in triggered mode to increase the fps more beyond 221 fps. Also, turn the frame buffer off using the disable frame buffer button. At 200+ fps the processor only had ...
by kwagyeman
Wed Apr 29, 2020 11:35 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

I'm focused on the interface library right now. Since the simple fix didn't work this has to become a project for me now. Question, did you try binarizing the image (using actual thresholds - not just calling to_bitmap()) and feed that to the net? Previously, on our old CNN system you had to binariz...
by kwagyeman
Tue Apr 28, 2020 10:48 am
Forum: Technical Discussion
Topic: I2C from machine vs I2C from pyb
Replies: 36
Views: 15089

Re: I2C from machine vs I2C from pyb

I mean, you have to re-write the driver code. It shouldn't be that hard. Just fix each error one at a time. You just need to read the code and fix it.
by kwagyeman
Sun Apr 26, 2020 5:17 pm
Forum: Technical Discussion
Topic: Global Shutter LED Out
Replies: 12
Views: 1441

Re: Global Shutter LED Out

Note, you have to actually do the ioctl to enable the camera to be triggered off of snapshot. Then for that I/O pin it's probably not on by default and you need to enable it via a register setting on the camera. See the camera datasheet.
by kwagyeman
Sun Apr 26, 2020 4:36 pm
Forum: Technical Discussion
Topic: Global Shutter LED Out
Replies: 12
Views: 1441

Re: Global Shutter LED Out

I have no idea... The only thing I can think is that there's an issue with the driver on the latest firmware. So, it's not your issue. We will be doing a new firmware release soon. But, I don't have time to debug this until I get to that. Probably in 2 weeks. In the mean-time. Assuming I can fix the...
by kwagyeman
Sun Apr 26, 2020 12:42 pm
Forum: General Topics
Topic: distance Meter
Replies: 29
Views: 16624

Re: distance Meter

I don't know how to. You're asking for a feature that is possible on the camera but only if you really know what you are doing. That said, we don't have this type of feature right out of the box. Given that, you may want to use a different product that has this feature by default. The only thing we ...
by kwagyeman
Sun Apr 26, 2020 12:55 am
Forum: Technical Discussion
Topic: Global Shutter LED Out
Replies: 12
Views: 1441

Re: Global Shutter LED Out

You have to recompile the firmware. See the file I linked to above. Follow this guide: https://github.com/openmv/openmv/wiki (make sure to clone recursively). The make file TARGET is OPENMV4... e.g. make TARGET=OPENMV4 Firmware output will be in src/build. Note, you may run into an issue related to ...
by kwagyeman
Sat Apr 25, 2020 3:08 pm
Forum: Technical Discussion
Topic: Global Shutter LED Out
Replies: 12
Views: 1441

Re: Global Shutter LED Out

Um, you'd have to manually wire things up. So, no.

Just use an external interrupt to modify the state of the PWM on the interrupt.
by kwagyeman
Sat Apr 25, 2020 1:45 pm
Forum: Technical Discussion
Topic: Global Shutter LED Out
Replies: 12
Views: 1441

Re: Global Shutter LED Out

Um, it, you can make an alias for it and recompile the firmware and then it will appear in PYB. Or, you can use the stm module to directly access registers and bypass everything. You just need to build the firmware and modify this file: https://github.com/openmv/micropython/blob/abc992e9401f98829e07...
by kwagyeman
Sat Apr 25, 2020 1:41 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 27
Views: 10182

Re: how to send image to server by post to http?

My library will work fine for you then. You can choose the following interfaces: WiFi - 1 to 2 Mbs in heavy wifi traffic area (using our WiFi shield) UART - 7.5 Mbps CAN - 1 Mbps SPI - 20 to 80 Mbps I2C - 1 Mbs USB VCP - 12 Mbps The library is self healing meaning that I designed it to be reliable i...
by kwagyeman
Sat Apr 25, 2020 11:01 am
Forum: General Topics
Topic: distance Meter
Replies: 29
Views: 16624

Re: distance Meter

Hi, I would suggest you learn how to code the algorithm on a computer first before thinking about how to get it onto the OpenMV Cam. Generally... coding a custom ML algorithm is pretty hard. You generally need to be a pro to do this. Given your project, maybe checkout PyImage Search and learn more a...
by kwagyeman
Sat Apr 25, 2020 10:51 am
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 27
Views: 10182

Re: how to send image to server by post to http?

Next week. I'm finishing up the library right now. I just got TCP and UDP raw image transfer from one OpenMV Cam to another working. Wifi can nominally move between 1 to 2 Mbps. I am writing a script for the computer now and I'll have the ability to transfer images wirelessly to a desktop working so...
by kwagyeman
Fri Apr 24, 2020 11:35 pm
Forum: General Topics
Topic: Paid project number recognition
Replies: 2
Views: 2507

Re: Paid project number recognition

It really depends on the algorithm used. You'd need to train a CNN. We have TensorFLow working with unit8_t models. We're working on getting in8_t models working. Using TensorFlow you can do what you need.
by kwagyeman
Fri Apr 24, 2020 9:44 pm
Forum: General Topics
Topic: distance Meter
Replies: 29
Views: 16624

Re: distance Meter

Most parts, you need a custom ML algorithm for this however... which requires performance.
by kwagyeman
Fri Apr 24, 2020 7:26 pm
Forum: Technical Discussion
Topic: how to send image to server by post to http?
Replies: 27
Views: 10182

Re: how to send image to server by post to http?

Hi, we will have a rather robust demo for how to do good TCP/UDP connections soon in our upcoming RPC library.
by kwagyeman
Fri Apr 24, 2020 1:31 pm
Forum: General Topics
Topic: distance Meter
Replies: 29
Views: 16624

Re: distance Meter

Yeah, it's possible, I know of some customers who have done this. However, you need to be advanced enough to modify the firmware and write your own Machine Learning code in C.
by kwagyeman
Fri Apr 24, 2020 1:05 am
Forum: Technical Discussion
Topic: Latest Firmware v3.6.1 messes up OpenMV Cam H7 pro
Replies: 4
Views: 1463

Latest Firmware v3.6.1 messes up OpenMV Cam H7 pro

Hi all, the latest firmware for the OpenMV Cam H7 Pro causes issues with the picture quality. v3.6.0 works fine.

I have pulled v3.6.1. from download until we have a new firmware out.

v3.6.1 gives weird purple splotches at QVGA and QQVGA.
by kwagyeman
Thu Apr 23, 2020 9:38 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1325

Re: Panning camera and trying to get images

img.compress_for_ide()

Sorry, it's on the image object. Not the sensor module.

sensor.snapshot().compress_for_ide()
by kwagyeman
Thu Apr 23, 2020 4:52 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1325

Re: Panning camera and trying to get images

Mmm, will have to look into this. The IDE just grabs whatever image is in our internal jpeg buffer. Flush should do the trick. I might have bugged the API working on other things. You can do this for now to force an update: print(sensor.compress_for_ide(quality=90), end='') Use that instead of flush...
by kwagyeman
Thu Apr 23, 2020 3:12 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Okay, I need this from you. Can you provide me the final model output and the training data set that you used for it. If I can load these images onto the camera via the SD card then I can actually debug this and get it working. I won't be able to debug your model unless I know what type of input it ...
by kwagyeman
Thu Apr 23, 2020 3:11 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1325

Re: Panning camera and trying to get images

Please do two snapshot calls back to back and leave the flush in. I'll need to debug why one snapshot isn't enough...
by kwagyeman
Thu Apr 23, 2020 1:55 pm
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1325

Re: Panning camera and trying to get images

print("\n1. Home Position") Pan.angle(0,2000) print("Snapshot") img = sensor.snapshot() img = sensor.snapshot() sensor.flush() time.sleep(5000) print("2. Pan angle -20") Pan.angle(-20,3000) print("Snapshot") img = sensor.snapshot() img = sensor.snapshot() sensor.flush() time.sleep(10000) print("3. ...
by kwagyeman
Thu Apr 23, 2020 1:44 pm
Forum: Technical Discussion
Topic: help please
Replies: 7
Views: 12832

Re: help please

Probably not going to stock it. You can buy from SignTown if you like. See our distributors.
by kwagyeman
Thu Apr 23, 2020 1:54 am
Forum: General Topics
Topic: send values to serial port
Replies: 23
Views: 9236

Re: send values to serial port

HI, I'm almost done with a new interface library that will be the new gold standard for anyone want to move data from the camera to anything else. Is it possible you can wait till next week on this? I should be done by then. The interface library I've been writing allows you to do RPC calls on the c...
by kwagyeman
Thu Apr 23, 2020 12:05 am
Forum: Technical Discussion
Topic: Panning camera and trying to get images
Replies: 10
Views: 1325

Re: Panning camera and trying to get images

Do sensor.flush() after sensor.snapshot(). snapshot internally calls flush before taking a new pic so you don't have to think about this generally. When you add delays you have to flush yourself. Note that the script needs to be running for flush to work and that the script exits when it reaches the...
by kwagyeman
Wed Apr 22, 2020 4:08 pm
Forum: General Topics
Topic: QVGA has weird purple splotches on new H7 Plus
Replies: 6
Views: 1032

Re: QVGA has weird purple splotches on new H7 Plus

Okay, I'll see what I can do to reproduce. It will take a while to get to this.
by kwagyeman
Wed Apr 22, 2020 3:46 pm
Forum: General Topics
Topic: QVGA has weird purple splotches on new H7 Plus
Replies: 6
Views: 1032

Re: QVGA has weird purple splotches on new H7 Plus

That scares me.

Can you report which modes have issues?

I remember seeing this issue when we first started on the driver but it disappeared long ago.
by kwagyeman
Wed Apr 22, 2020 2:30 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Hi, try this binary out. It will subtract 128 from the input unsigned image data if the data is signed and add 128 to the output if signed to make it unsigned again. The input and output are done independently. So, you are free to mix and match. I've verified that our unsigned person detector networ...
by kwagyeman
Wed Apr 22, 2020 1:03 am
Forum: General Topics
Topic: OpenMV Cam H7 Plus DFU Issue
Replies: 0
Views: 1324

OpenMV Cam H7 Plus DFU Issue

Hi all, If you have an OpenMV Cam H7 Plus please do not use the DFU bootloader with it. ST reved their hardware bootloader firmware vesion breaking DFU support for all their old tools. I.e. our windows DFU tool no-longer works. With the help of Arduino however for support of their H7 Portena board w...
by kwagyeman
Wed Apr 22, 2020 12:55 am
Forum: General Topics
Topic: QVGA has weird purple splotches on new H7 Plus
Replies: 6
Views: 1032

Re: QVGA has weird purple splotches on new H7 Plus

I just pushed a new firmware package for the latest IDE. This was an issue with the very first version of the driver. You are using old firmware.
by kwagyeman
Wed Apr 22, 2020 12:54 am
Forum: General Topics
Topic: OpenMV Cam H7 Plus Resolutions
Replies: 0
Views: 1241

OpenMV Cam H7 Plus Resolutions

Hi folks, The OpenMV Cam H7 Plus finally started shipping. However, the OV5640 driver isn't as fast some folks might like just yet. Right now, we support the following resolutions: // C/SIF Resolutions {88, 72 }, /* QQCIF */ {176, 144 }, /* QCIF */ {352, 288 }, /* CIF */ {88, 60 }, /* QQSIF */ {176,...
by kwagyeman
Wed Apr 22, 2020 12:32 am
Forum: General Topics
Topic: QVGA has weird purple splotches on new H7 Plus
Replies: 6
Views: 1032

Re: QVGA has weird purple splotches on new H7 Plus

Hmmm,

That's weird. I don't get that. It must be the firmware.

Let me push the latest fix to the IDE. ASAP.
by kwagyeman
Tue Apr 21, 2020 5:12 pm
Forum: Technical Discussion
Topic: specific application of gaussian
Replies: 1
Views: 638

Re: specific application of gaussian

Hi, we've optimized the firmware in the latest head of our repo to make that go way faster. Median filter for example was speed up 1000%.

Um, attached is a firmware binary. Give some of the filters a try. For the H7.
by kwagyeman
Tue Apr 21, 2020 1:50 pm
Forum: General Topics
Topic: Other fiducial markers: WhyCon and WhyCode
Replies: 1
Views: 616

Re: Other fiducial markers: WhyCon and WhyCode

Unless there's a C library we can port it would be too much time to use those. It looks like the code was all written using OpenCV.
by kwagyeman
Mon Apr 20, 2020 5:20 pm
Forum: General Topics
Topic: Callibration of Servos using OpenMV
Replies: 1
Views: 667

Re: Callibration of Servos using OpenMV

If you have a target that is in a known position and find_blobs() can find the edges really well and the centroid is stable then that would work the best. Just one blob is enough. You'd just turn the servos until the blob hit the edge of the image. Then you go the other way. You'd do all 4 directions.
by kwagyeman
Mon Apr 20, 2020 11:46 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Okay, I'll make a version of the firmware that fixes the offset and post it tonight. This should fix the problem. The firmware will check the network input type and then fix the data signedness automatically. ... That said, it would be helpful to know the range if possible. I'm going to assume I jus...
by kwagyeman
Mon Apr 20, 2020 3:25 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Hi, another user brought an issue up and the problem is likely related to the fact that I don't do uint8_t->int8_t input/output conversion. Right now the image is fed to the net as a uint8_t image. Can you tell me what type of image data you trained on and what you expect the output to be? I.e is th...
by kwagyeman
Mon Apr 20, 2020 3:20 am
Forum: Project Discussion
Topic: How to control movement of robot based on the distance of april tag
Replies: 1
Views: 919

Re: How to control movement of robot based on the distance of april tag

Please see the AprilTag examples. For board control, please see the board control examples. You need to be able to take the code form the examples and build what you want to do.
by kwagyeman
Sun Apr 19, 2020 5:31 pm
Forum: Technical Discussion
Topic: Saving x, y and rotation as txt file to sd card?
Replies: 5
Views: 832

Re: Saving x, y and rotation as txt file to sd card?

Copy this file onto your OpenMV Cam: https://github.com/kwagyeman/openmv/blob/kwabena/interface_library/scripts/libraries/rpc.py Set this as main.py: https://github.com/kwagyeman/openmv/blob/kwabena/interface_library/scripts/examples/34-Remote-Control/as_the_remote_device.py ... On your pc download ...
by kwagyeman
Sun Apr 19, 2020 4:11 pm
Forum: Technical Discussion
Topic: Saving x, y and rotation as txt file to sd card?
Replies: 5
Views: 832

Re: Saving x, y and rotation as txt file to sd card?

Not yet, I'm working on an interface library that makes this possible however. It's tricky to do currently. Once I release the interface library this will be trivial. Actually, I already have working code if you want it.
by kwagyeman
Sun Apr 19, 2020 1:04 pm
Forum: Technical Discussion
Topic: Saving x, y and rotation as txt file to sd card?
Replies: 5
Views: 832

Re: Saving x, y and rotation as txt file to sd card?

Hi, the camera runs python.

So you literally open a file in Python and write to that file.

Code: Select all

with open("./filename.txt", 'w') as file:
    file.write(text)
by kwagyeman
Sun Apr 19, 2020 1:03 pm
Forum: Technical Discussion
Topic: TensorFlow Lite model inference result is wrong
Replies: 3
Views: 693

Re: TensorFlow Lite model inference result is wrong

That's an error in the TensorFlow library. I cannot solve that. Anyway, for your previous network. What was the range of the input data and expected output data? I can just subtract 128 from all pixels going in and subtract 128 from the output and this might mix everything. Please tell me the range ...
by kwagyeman
Sun Apr 19, 2020 2:29 am
Forum: Technical Discussion
Topic: TensorFlow Lite model inference result is wrong
Replies: 3
Views: 693

Re: TensorFlow Lite model inference result is wrong

Hi, if you trained for int and you use grayscale we'd just give you 0 to 255. This probably breaks your model. Our code just converts the source image into the target format for the CNN. It does not convert unsigned data into signed data. What was the range of input you fed your model? 0 to 127? -12...
by kwagyeman
Fri Apr 17, 2020 11:16 am
Forum: Project Discussion
Topic: Using OpenMV to control Submersible
Replies: 2
Views: 653

Re: Using OpenMV to control Submersible

Yeah, this is possible and not that hard. Um, the bigger issue is that's it's quite hard to see underwater. How deep are you going and how to you plan to deal with image distortion from the water?
by kwagyeman
Fri Apr 17, 2020 11:15 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Your code is completely wrong... Please read what the network outputs. I will post an update with changes to your code in a it.
by kwagyeman
Thu Apr 16, 2020 10:42 am
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Hi, does that mean you got it working or it was generating a wrong classification?

Mnist required black and white data so you should binarize the input.

Always feed the network images that look exactly like what it was trained on. Networks do not really generalize. They just recall.
by kwagyeman
Tue Apr 14, 2020 11:48 pm
Forum: Technical Discussion
Topic: Can't use Tensorflow-Lite for OpenMV
Replies: 44
Views: 5225

Re: Can't use Tensorflow-Lite for OpenMV

Hi, here's a new firmware for the H7. It should work for you. Let me know and then this will be in the next release.
by kwagyeman
Tue Apr 14, 2020 10:47 am
Forum: Technical Discussion
Topic: Is the I2C for MLX90640 thermal sensor software/bit-bashed?
Replies: 2
Views: 755

Re: Is the I2C for MLX90640 thermal sensor software/bit-bashed?

It's bit banged. Ibrahim wrote it like that a long time ago and it worked and we just didn't change it. If you look at the commits the code is from like 2015. The sensor is on a valid I2C bus however so you can use an I2C bus easily. I think the old 16x4 MLX sensor needed the software I2C because yo...
by kwagyeman
Tue Apr 14, 2020 10:37 am
Forum: Project Discussion
Topic: OpenMV based visul sorter
Replies: 5
Views: 997

Re: OpenMV based visul sorter

Hi, if the motor control needs to be really precise we recommend using an Arduino to sync up. We're working on an interface library to connect the OpenMV Cam to the Arduino which will be out soon to make this easy to hookup. ... If motor control isn't that precise and can be done after taking a pict...

Go to advanced search