Search found 2722 matches

by kwagyeman
Tue Jan 08, 2019 12:01 am
Forum: General Topics
Topic: color sensor
Replies: 3
Views: 888

Re: color sensor

The OV7725?
by kwagyeman
Mon Jan 07, 2019 11:59 pm
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 13
Views: 1989

Re: maintaing same brightness throughout video

Hi, the OV7725?
by kwagyeman
Mon Jan 07, 2019 4:11 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 17
Views: 3346

Re: How can I find minimum area rectangle in binary image?

Hi, okay, I did it. Attached is the new firmware. Here's some sample code: # Single Color RGB565 Blob Tracking Example # # This example shows off single color RGB565 tracking using the OpenMV Cam. import sensor, image, time, math threshold_index = 0 # 0 for red, 1 for green, 2 for blue # Color Track...
by kwagyeman
Mon Jan 07, 2019 2:55 am
Forum: General Topics
Topic: Shape Detection
Replies: 18
Views: 4854

Re: Shape Detection

Hi, if the rectangles are in a row in the x direction you just need to sort the rectangle objects by their x positions and then pick the 4th one from the list if it exist. You can use the sorted() method in MicroPython to sort the list and you can set the key for sorting to be equal to the x value o...
by kwagyeman
Sun Jan 06, 2019 8:44 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Okay, it's done. Just add x_hist_bins_max=<a number> and y_hist_bins_max=<a number> to find_blobs(). Then you can get the histogram list via the x_hist_bins() and y_hist_bins() properties. X and Y are completely separate. So, enable one, or the other, or both. The returned value above is a python li...
by kwagyeman
Sun Jan 06, 2019 3:59 pm
Forum: General Topics
Topic: face_recognition.py example not working
Replies: 10
Views: 2801

Re: face_recognition.py example not working

K, I'll get this fixed for the next firmware release.
by kwagyeman
Sun Jan 06, 2019 3:58 pm
Forum: Technical Discussion
Topic: Communication between OpenMV and ROS
Replies: 3
Views: 1159

Re: Communication between OpenMV and ROS

Hi, you'd need to write a ROS node that receives serial data from a serial port and publishes the messages in ROS. In python code this isn't really a lot of lines. Keep in mind the OpenMV Cam isn't a fixed function sensor where there's an obvious way to do this. You can design whatever application y...
by kwagyeman
Sat Jan 05, 2019 6:03 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Okay. I'll add the binary image projections: http://www.cse.usf.edu/~r1k/MachineVisionBook/MachineVision.files/MachineVision_Chapter2.pdf For both w and h. I can allocate an array that's static for the width and height of the image and the accumulate into both. Then, after the accumulation I can fin...
by kwagyeman
Sat Jan 05, 2019 2:11 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Mmm, number of pixels in every column is a reduction. That's kinda doable. It's still a lot of RAM however. Please work on the full algorithm and see if we can get more reductions. I can do like a flag which would enable population of an array value otherwise which would be null if the flag isn't pa...
by kwagyeman
Sat Jan 05, 2019 2:09 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Um, can you write the code you need to parase that pixel array you talked about and I'll see what I can put in the C code. I understand you need two cameras and have to take a view into account. However, if you do rotation correction on each cameras image then that removes that variable. So, then yo...
by kwagyeman
Sat Jan 05, 2019 1:41 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Hi, I can't expose that because of how much RAM it would take. I can only expose a mathematical derivative of the pixels inside of the blob. Please try to work out what mathematical operation you need done and then I can implement it in C code. Please keep in mind that memory on the microcontrollers...
by kwagyeman
Sat Jan 05, 2019 12:32 pm
Forum: Project Discussion
Topic: Open Mv face_detection over wifi
Replies: 13
Views: 1258

Re: Open Mv face_detection over wifi

Hi, you haven't described what application is receiving your data. A socket has to connect to some device and send the data to it. If you want to do a WiFi based application you need to think about what will receive the data and clearly define a protocol for that reception.
by kwagyeman
Sat Jan 05, 2019 12:27 pm
Forum: Technical Discussion
Topic: models supported by CMSIS-NN?
Replies: 8
Views: 1118

Re: models supported by CMSIS-NN?

Yeah, that's the best what for this to work is to collect images from the camera's view of what you need to work on. Then the networks will work great. This eliminates a lot of the variables.
by kwagyeman
Sat Jan 05, 2019 12:21 pm
Forum: Technical Discussion
Topic: How to measure volume of objects with irregular shapes
Replies: 16
Views: 840

Re: How to measure volume of objects with irregular shapes

Hmm, I see what you want to do. Um, so, the number of pixels in each blob is exposed. Can you use this value to guess? Otherwise, you need to edit the C firmware to do what you want: The loop that does the math accumulation is right here: https://github.com/openmv/openmv/blob/master/src/omv/img/blob...
by kwagyeman
Fri Jan 04, 2019 12:08 pm
Forum: Project Discussion
Topic: Open Mv face_detection over wifi
Replies: 13
Views: 1258

Re: Open Mv face_detection over wifi

Um, yeah, so, what are you trying to do and what exactly is wrong? You didn't specify what actually isn't working. You just posted some code with no indication what you are trying to communicate with.
by kwagyeman
Thu Jan 03, 2019 11:11 pm
Forum: Project Discussion
Topic: Open Mv face_detection over wifi
Replies: 13
Views: 1258

Re: Open Mv face_detection over wifi

Hi, Ibrahim will be able to help you in a bit.
by kwagyeman
Thu Jan 03, 2019 11:09 pm
Forum: Technical Discussion
Topic: models supported by CMSIS-NN?
Replies: 8
Views: 1118

Re: models supported by CMSIS-NN?

Yeah, that's about the results of the neural network. The reason for it not being super awesome is a lack of training examples. Most of the hype you see about deep learning being awesome requires tons of training examples. The network is very good at doing the most minimal amount of learning to scor...
by kwagyeman
Thu Jan 03, 2019 12:34 pm
Forum: Technical Discussion
Topic: Create image from feature
Replies: 7
Views: 1626

Re: Create image from feature

Use the save() method and use the roi= argument.
by kwagyeman
Wed Jan 02, 2019 8:16 pm
Forum: Project Discussion
Topic: Telepot on OPENMV
Replies: 1
Views: 515

Re: Telepot on OPENMV

The OpenMV Cam does not run desktop python. You cannot run desktop python programs on it. Micro python is a minimal python system.
by kwagyeman
Wed Jan 02, 2019 8:15 pm
Forum: Kickstarter Topics
Topic: Future wishlist
Replies: 20
Views: 8763

Re: Future wishlist

It will make more sense to connect a particle.io microcontroller to the OpenMV Cam.
by kwagyeman
Wed Jan 02, 2019 8:14 pm
Forum: Kickstarter Topics
Topic: OpenMV H7
Replies: 16
Views: 4956

Re: OpenMV H7

It's not released yet. Please back it on BackerKit (see link on the home page).
by kwagyeman
Wed Jan 02, 2019 3:05 pm
Forum: Technical Discussion
Topic: jpeg compression algorithm
Replies: 13
Views: 1326

Re: jpeg compression algorithm

The H7 has a JPEG hardware compressor so it's actually a lot faster.
by kwagyeman
Wed Jan 02, 2019 11:22 am
Forum: General Topics
Topic: Shape Detection
Replies: 18
Views: 4854

Re: Shape Detection

by kwagyeman
Wed Jan 02, 2019 11:20 am
Forum: Technical Discussion
Topic: models supported by CMSIS-NN?
Replies: 8
Views: 1118

Re: models supported by CMSIS-NN?

Use the Smile network as a starting point. As for the image size, yes, they should be 32x32. Here's a rather comprehensive guide yet to be merged into the main github: https://github.com/kwagyeman/openmv/tree/more_nn_nets/ml/cmsisnn If you look at the later networks I built I basically just took the...
by kwagyeman
Tue Jan 01, 2019 3:40 am
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 17
Views: 3346

Re: How can I find minimum area rectangle in binary image?

Yeah, I get what you want to do. But, keep in mind you haven't presented a use case other than you want to display this onscreen which is a rather weak need for it. We have a method that gives you already the rotation an object. Anyway, given what you want. I'll add the outer edges of the object poi...
by kwagyeman
Mon Dec 31, 2018 12:11 pm
Forum: Technical Discussion
Topic: How can I find minimum area rectangle in binary image?
Replies: 17
Views: 3346

Re: How can I find minimum area rectangle in binary image?

Not yet. I've finally completed enough tasks to get back to doing firmware updates however. So, the next firmware release should have this feature. Um, note, I plan to just expose the four extreme corners of the object. The minimum rect will just then be parallel lines that pass through these corner...
by kwagyeman
Mon Dec 31, 2018 12:06 pm
Forum: General Topics
Topic: How can recover the OpenMV device
Replies: 1
Views: 557

Re: How can recover the OpenMV device

Hi, you need to connect RST and BOOT0 together to enter DFU mode. Do that and the device should be recoverable. Um, alternatively, hit the connect button with no board connected in OpenMV IDE. Walk through the text prompt about the board being bricked, and then connect the board without the DFU jump...
by kwagyeman
Mon Dec 31, 2018 11:49 am
Forum: General Topics
Topic: Shape Detection
Replies: 18
Views: 4854

Re: Shape Detection

Hi, you need to write code in python to filter the object output. This is very application specific so it's up to you.
by kwagyeman
Fri Dec 28, 2018 5:03 pm
Forum: Technical Discussion
Topic: Find Object Position after using Frame Differencing
Replies: 7
Views: 734

Re: Find Object Position after using Frame Differencing

Hi, Google xor swap. It's a common method to swap two values without a temporary buffer. Anyway, regarding the noise. You'll never get rid out that flat out. You have to then use the area and pixel thresholds to filter out unwanted smaller pixels. You may also want to use the binary method to binari...
by kwagyeman
Fri Dec 28, 2018 4:23 pm
Forum: Technical Discussion
Topic: Find Object Position after using Frame Differencing
Replies: 7
Views: 734

Re: Find Object Position after using Frame Differencing

Yeah, using invert is probably the way to go since the background is black normally. So, marching for everything not black is the best way to go. Um, in regards to the original image it gets destroyed after you do difference on it. Soz it's not there anymore. You can however allocate a second extra ...
by kwagyeman
Fri Dec 28, 2018 12:59 pm
Forum: General Topics
Topic: Windows 10 . IDE will not install
Replies: 1
Views: 579

Re: Windows 10 . IDE will not install

Hi, the IDE not running on your PC is likely due to your virus scanner settings or something like that. We have a large population of windows users without issues. I would check the task manager and see if the app was killed or is running still.
by kwagyeman
Fri Dec 28, 2018 12:49 pm
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 24
Views: 7404

Re: openmv to arduino with template matching examples

Yes, go to Tools -> Save Script to OpenMV Cam.

Then after the script has been saved click the: Tools -> Reset OpenMV Cam button.
by kwagyeman
Thu Dec 27, 2018 10:55 pm
Forum: Technical Discussion
Topic: Find Object Position after using Frame Differencing
Replies: 7
Views: 734

Re: Find Object Position after using Frame Differencing

Hi, run the frame differencing operation and then sample the colors in the image after the frame differencing operation to get the color values of whatever is there minus the background. You need to manual sample the new color values after frame differencing.
by kwagyeman
Thu Dec 27, 2018 2:32 am
Forum: Technical Discussion
Topic: Strange noisy lines on QQQVGA images
Replies: 3
Views: 569

Re: Strange noisy lines on QQQVGA images

Make a bug on github for this.
by kwagyeman
Thu Dec 27, 2018 1:24 am
Forum: Technical Discussion
Topic: FIR AMG8833 image rotated ?
Replies: 5
Views: 660

Re: FIR AMG8833 image rotated ?

Um, please create a bug tracker on GitHub or send a PR to fix the issue. It looks like a rotation + image flip issue.
by kwagyeman
Thu Dec 27, 2018 1:23 am
Forum: Technical Discussion
Topic: FIR AMG8833 image rotated ?
Replies: 5
Views: 660

Re: FIR AMG8833 image rotated ?

I agree the rotation is wrong. It looks like the image is flipped either. The issue is right here: https://github.com/openmv/openmv/blob/m ... fir.c#L563. Just need to change how this loop works. Or this loop: https://github.com/openmv/openmv/blob/m ... fir.c#L549.
by kwagyeman
Thu Dec 27, 2018 1:20 am
Forum: Technical Discussion
Topic: Strange noisy lines on QQQVGA images
Replies: 3
Views: 569

Re: Strange noisy lines on QQQVGA images

That's due to an issue with the JPEG compression algorithm, this is a bug in the firmware I've been ignoring. It's due to use padding the JPEG image with zeros versus extending the pixels indefinitely from the edge when the image is not a multiple of 8. Um, yeah, let's get this fixed now. Make the i...
by kwagyeman
Wed Dec 26, 2018 4:53 pm
Forum: Technical Discussion
Topic: FIR AMG8833 image rotated ?
Replies: 5
Views: 660

Re: FIR AMG8833 image rotated ?

Um, I can test this again tonight.
by kwagyeman
Wed Dec 26, 2018 4:52 pm
Forum: Technical Discussion
Topic: FIR AMG8833 image rotated ?
Replies: 5
Views: 660

Re: FIR AMG8833 image rotated ?

Hi, yes, VIN doesn't output voltage, so you have to use the 3.3v pin on the OpenMV Cam. As for the sensor image rotation. Um, yeah, maybe there's a bug here. I'll check if the rotation is wrong. I think I had it right however. I've never tested with whatever the Arduino software did.
by kwagyeman
Tue Dec 25, 2018 2:19 pm
Forum: Technical Discussion
Topic: subscribe function for mqtt is not working
Replies: 6
Views: 1555

Re: subscribe function for mqtt is not working

Mmm, I really hate how MicroPython just returns negative numbers without any context for errors. Looking up what they mean is a pain. Ibrahim can help on this. It's likely a socket being closed however. The best way to deal with this is to wrap the method call chain in try: except: logic and redo op...
by kwagyeman
Mon Dec 24, 2018 4:13 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1848

Re: Second SPI device while using LCD shield?

Hi, please start a new forum thread. Note that you're question is so... general. If you want to transmit data over WiFi it's a socket interface so you need to provide some infrastructure on the receiving end of the data transfer.
by kwagyeman
Sun Dec 23, 2018 12:58 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1848

Re: Second SPI device while using LCD shield?

We serious need community support to make that happen. Me an Ibrahim are stretched so thin.
by kwagyeman
Sun Dec 23, 2018 1:50 am
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1848

Re: Second SPI device while using LCD shield?

Hi, I'm going to be updating the LCD driver this week with better code after the next IDE release. I can make the driver deinit the SPI bus after using it per image write call. You won't see a performance impact but it will make things work such that our SPI bus use looks transparent.
by kwagyeman
Sat Dec 22, 2018 10:29 pm
Forum: General Topics
Topic: Chars74k
Replies: 1
Views: 550

Re: Chars74k

Hi, it doesn't run the on the M7. Only the H7. I'll be updating all the docs and other things very soon now that I finally have time to work on OpenMV again.
by kwagyeman
Sat Dec 22, 2018 7:02 pm
Forum: General Topics
Topic: openmv to arduino with template matching examples
Replies: 24
Views: 7404

Re: openmv to arduino with template matching examples

Ibrahim, can you help on this?
by kwagyeman
Sat Dec 22, 2018 6:59 pm
Forum: Technical Discussion
Topic: jpeg compression algorithm
Replies: 13
Views: 1326

Re: jpeg compression algorithm

We support both the MT9V034 and the OV7725. The new system can actually support any sensor so we expect folks to mod the system heavily to add their own camera variants. Video recording wasn't really our goal anyway. So, we're not too concerned about it. Anyway, capturing is smooth as long as your s...
by kwagyeman
Sat Dec 22, 2018 6:44 pm
Forum: Technical Discussion
Topic: Second SPI device while using LCD shield?
Replies: 12
Views: 1848

Re: Second SPI device while using LCD shield?

We really didn't build our stack to allow two SPI devices at the same time. If you want to use the LCD shield with another SPI device we reconmend not using our LCD module but instead using the python sample code under examples and adding the second SPI device yourself.
by kwagyeman
Fri Dec 21, 2018 11:06 am
Forum: General Topics
Topic: maintaing same brightness throughout video
Replies: 13
Views: 1989

Re: maintaing same brightness throughout video

Hi, use the median of the L channel and adjust the the automatic exposure accordingly.
by kwagyeman
Thu Dec 20, 2018 9:21 pm
Forum: Technical Discussion
Topic: jpeg compression algorithm
Replies: 13
Views: 1326

Re: jpeg compression algorithm

The problem is that the camera doesn't generate the data in 8x8 blocks. It generates scanlines. So you have to rearrange the data still using the CPU. ST made the hardware just for video playback so ta quite deficent at encoding.

Go to advanced search