Search found 465 matches

by iabdalkader
Thu Jun 21, 2018 2:30 pm
Forum: General Topics
Topic: Would it be possible to perform the canny edge detection just inside a roi?
Replies: 2
Views: 46

Re: Would it be possible to perform the canny edge detection just inside a roi?

Hi, there's a bug in Canny edge ROI, the code allocates the gradient array for the whole image (regardless of ROI). It's now fixed and I confirmed it works on OMV3, 4 and will be included in the next release.
by iabdalkader
Wed Jun 20, 2018 2:26 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 42
Views: 10148

Re: implement own Haar-Cascade

Hi download the script like so: wget https://raw.githubusercontent.com/openmv/openmv/master/usr/openmv-cascade.py The link above seems not existed any longer. I get it from https://github.com/openmv/openmv/blob/master/ml/haarcascade/cascade_convert.py but when I ran it with attached xml file on ubu...
by iabdalkader
Tue Jun 19, 2018 9:39 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 6
Views: 50

Re: USB HID mode

Yes from github if u don't want to wait for the next release.
by iabdalkader
Tue Jun 19, 2018 7:53 pm
Forum: Technical Discussion
Topic: USB HID mode
Replies: 6
Views: 50

Re: USB HID mode

I re-enabled boot.py, you'll be able to use it as usual (note only VCP+MSC and VCP+HID are tested and working, I wouldn't try anything else).
by iabdalkader
Mon Jun 18, 2018 12:30 am
Forum: Technical Discussion
Topic: connection between raspberrypi and openmvcam
Replies: 11
Views: 126

Re: connection between raspberrypi and openmvcam

I'd use UART to avoid the SPI master/slave issue, and you don't need high baudrates if you're just sending the detection results.
by iabdalkader
Mon Jun 18, 2018 12:27 am
Forum: Technical Discussion
Topic: USB HID mode
Replies: 6
Views: 50

Re: USB HID mode

HID mode is not enabled, I'll see if I can enable it before the next release.

Note: main.py and boot.py can run from SD or Flash the same, but we don't use boot.py so it's ignored.
by iabdalkader
Fri Jun 15, 2018 1:26 am
Forum: General Topics
Topic: Regarding openmv cam m7
Replies: 2
Views: 50

Re: Regarding openmv cam m7

Is that the MCU serial number ? From the user's perspective they shouldn't be different.
by iabdalkader
Fri Jun 15, 2018 1:24 am
Forum: General Topics
Topic: my own cascade
Replies: 5
Views: 79

Re: my own cascade

Yes we will be releasing a new firmware for M4 soon.
by iabdalkader
Tue Jun 12, 2018 8:19 pm
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 108

Re: MemoryError when read wave frames

Just tested, it seems not fix my issue on M7. do you have an estimate of memory cost of openmv itself excluding framebuffer? Thanks Hi, Add a gc.collect at the end of detect_face_image: self.check_head_sideway(rotate_angle) gc.collect() And gc.collect() before reading frames: gc.collect() frames = ...
by iabdalkader
Tue Jun 12, 2018 6:41 pm
Forum: General Topics
Topic: my own cascade
Replies: 5
Views: 79

Re: my own cascade

Seems you're on a very old firmware, please update the firmware first.
by iabdalkader
Sat Jun 09, 2018 7:42 pm
Forum: Technical Discussion
Topic: mjpeg_streaming_ap not support ios devices
Replies: 2
Views: 54

Re: mjpeg_streaming_ap not support ios devices

On Android I use the MJpegViewer App.
by iabdalkader
Sat Jun 09, 2018 4:14 pm
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 108

Re: MemoryError when read wave frames

This is just a fragmented memory issue, the scripts run fine on H7. I think most of memory is consumed by just loading/parsing/compiling the modules wave and chunk. This seems to fix it: frames = f.readframes(frame_rate) self.dac.write_timed(frames, frame_rate) del frames delay(1000) gc.collect()
by iabdalkader
Wed Jun 06, 2018 11:49 am
Forum: Technical Discussion
Topic: MemoryError when read wave frames
Replies: 10
Views: 108

Re: MemoryError when read wave frames

Falong wrote:
Tue Jun 05, 2018 11:04 pm
Is this MemoryError due to limited heap size? how to check how much heap available? the tested wav file is less than 9kB.
import gc

print("Free: %dKBs"%(gc.mem_free()//1024))

Note memory could be fragmented.

Please share the whole script(s)+wave file(s) in a .zip and I'll test them.
by iabdalkader
Wed Jun 06, 2018 11:42 am
Forum: Technical Discussion
Topic: LCD type
Replies: 22
Views: 162

Re: LCD type

I have a st7735 with res of 160 x 128 that runs 16 bit colour so would be perfect for RGB565 in QQVGA. Will it be compatible with the LCD module?? Also if it is what's the pin out as the docs just say P0, P2, P3, P6, P7, and P8 without defining MOSI, MISO, CS, D0, BL, RST Yes I think that's the sam...
by iabdalkader
Wed May 30, 2018 1:30 pm
Forum: Technical Discussion
Topic: WINC module for pyboard...
Replies: 2
Views: 53

Re: WINC module for pyboard...

Hi, you could open a feature request in micropython's upstream repo and ask to add the driver. They can use our C driver if they like.
by iabdalkader
Tue May 29, 2018 8:52 pm
Forum: Technical Discussion
Topic: Using OpenMV camera with normal python 3 ?
Replies: 4
Views: 160

Re: Using OpenMV camera with normal python 3 ?

We also have our own OpenMV Python module here: https://github.com/openmv/openmv/blob/master/tools/pyopenmv.py Using this you can communicate with the camera in "debug mode" (meaning you can read the framebuffer and the text buffer and run/stop scripts etc..). Here's an example using pygame: https:/...
by iabdalkader
Mon May 28, 2018 11:03 pm
Forum: Technical Discussion
Topic: What is maximum Z position(height), to get the crisp preview of a phone screen below openmv camera ?
Replies: 2
Views: 62

Re: What is maximum Z position(height), to get the crisp preview of a phone screen below openmv camera ?

Did you save that image from a script or screenshot the IDE preview ? Note the IDE preview is JPEG compressed (small text will be destroyed).
by iabdalkader
Fri May 25, 2018 7:53 pm
Forum: Technical Discussion
Topic: test own Haar-Cascade
Replies: 2
Views: 76

Re: test own Haar-Cascade

Hi, your cascade has only 2 stages I expected much more, which makes think it probably won't work so I tested it with OpenCV on a pos image and it doesn't detect it: import numpy as np import cv2 as cv cascade = cv.CascadeClassifier('trafficsign/trafficsign.xml') img = cv.imread('trafficsign/pos/000...
by iabdalkader
Fri May 25, 2018 7:23 pm
Forum: Technical Discussion
Topic: Issue with MK7 Camera
Replies: 6
Views: 116

Re: Issue with MK7 Camera

Sounds like a short. Do you have a USB current meter ?
by iabdalkader
Thu May 24, 2018 10:13 am
Forum: Technical Discussion
Topic: OSError could not find the file
Replies: 5
Views: 117

Re: OSError could not find the file

All 3 .pgm files are in the same folder as the .py
The images need to be on the camera's storage (flash or SD card)
by iabdalkader
Mon May 21, 2018 9:13 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 17
Views: 261

Re: OpenMV IDE 1.9.0 "stopping" issue

By fatal error do you mean the camera restarts or gets stuck in a loop ? The issue I was seeing is random stop/exec cause the camera to hardfault and restart.
by iabdalkader
Mon May 21, 2018 5:07 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 "stopping" issue
Replies: 17
Views: 261

Re: OpenMV IDE 1.9.0 "stopping" issue

Hi,

Can you test the attached firmware ? It should fix the stop issue.

Note: Yes I think I changed the LEDs reset recently (it's okay).
by iabdalkader
Thu May 17, 2018 5:54 pm
Forum: General Topics
Topic: Problem related to image.match_descriptor
Replies: 4
Views: 111

Re: Problem related to image.match_descriptor

Hi, kptmatch.count() returns the number of matching keypoints pairs. while kptmatch.match() returns a list of tuples of matching keypoints indices. So they should be the same length, if count() returns 5 (5 pairs match), match() should return a list of 5 tuples [(0, 1), (1, 2), etc...] This features...
by iabdalkader
Thu May 17, 2018 5:11 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date
Replies: 7
Views: 139

Re: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date

So are you saying that those of us that supported the OpenMV movement by buying the original OpenMV M4 are going to be simply cast aside and ignored? No, while we really appreciate your help getting this project off the ground, there's really nothing we can do here. It's Not laziness on our side, b...
by iabdalkader
Tue May 15, 2018 5:58 pm
Forum: General Topics
Topic: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date
Replies: 7
Views: 139

Re: OpenMV IDE 1.9.0 says Firmware 2.8.0 out of date

Actually we're going to stop releasing new firmware for the M4 because none of the new features work on it. The last firmware image for M4 is 2.8.0. I'd recommend getting an M7.
by iabdalkader
Tue May 15, 2018 12:58 pm
Forum: Technical Discussion
Topic: only one device connected to the AP(wifi shield)
Replies: 3
Views: 103

Re: only one device connected to the AP(wifi shield)

The AP mode only supports 1 client at a time. It's a WINC limitation.
by iabdalkader
Mon May 14, 2018 8:54 pm
Forum: Technical Discussion
Topic: WiFi Shield Socket - No Bytes Read
Replies: 3
Views: 114

Re: WiFi Shield Socket - No Bytes Read

Hi, there was a bug in the recently updated sockets layer. I'm attaching a patched fw image if you want to use it now.
Note re that example script, the buffer size passed to recv should be large enough to hold the received data (otherwise it gets overwritten).
by iabdalkader
Sun May 06, 2018 5:15 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 38
Views: 827

Re: saving video on SD card

Hi again, I found two more bugs in SD and fixed them. This image should be good.

Attached.
by iabdalkader
Sat May 05, 2018 3:50 pm
Forum: Technical Discussion
Topic: Trouble with PIN 8
Replies: 4
Views: 127

Re: Trouble with PIN 8

Hi, maybe pin 8 and 9 are shorted, can you test with a meter ? Also please post your code.
by iabdalkader
Sat May 05, 2018 3:34 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 38
Views: 827

Re: saving video on SD card

Hi, I'm attaching a new image, can you give it a try and let me know if it fixes the issue ? Note I changed the fw version to 2.9.1 to avoid any confusion. Also I'd format the SD first.
by iabdalkader
Fri May 04, 2018 8:35 pm
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 38
Views: 827

Re: saving video on SD card

I'm pretty sure this fixes it, hmm can you try uploading the fw again ? Note browse for the patched firmware don't copy it to the IDE's directories.
by iabdalkader
Fri May 04, 2018 11:08 am
Forum: Technical Discussion
Topic: saving video on SD card
Replies: 38
Views: 827

Re: saving video on SD card

@iScienceLuvr

Hi, can you please test the attached firmware ?
by iabdalkader
Tue May 01, 2018 6:38 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 42
Views: 10148

Re: implement own Haar-Cascade

@aqeelyaacob Please post a new topic for that with as much details as possible.
by iabdalkader
Thu Apr 26, 2018 10:44 pm
Forum: General Topics
Topic: Convert from RGB565 to RGB888
Replies: 4
Views: 390

Re: Convert from RGB565 to RGB888

Ezzobeir wrote: Could you just explain to me how to set the RAW mode ? Sorry I just started with OpenMV, I haven't got used to it yet.
Use this:

Code: Select all

sensor.set_pixformat(sensor.BAYER)
by iabdalkader
Sat Apr 21, 2018 8:13 pm
Forum: Technical Discussion
Topic: strange behavior with set_windowing
Replies: 10
Views: 461

Re: strange behavior with set_windowing

Does this mean the windowing should be in multiples of 8px? Yes for now. @Kwabena I will just make the sensor driver do a virtual window without whatever the HAL is doing. I was also thinking of just adding a window to the sensor struct, we would have make sure it doesn't break something else, so m...
by iabdalkader
Sat Apr 21, 2018 2:10 pm
Forum: Technical Discussion
Topic: strange behavior with set_windowing
Replies: 10
Views: 461

Re: strange behavior with set_windowing

Hi, the image width*2 should be a multiple of 16 bytes to work with the current DMA transfer size configuration (burst of 4 * 4 bytes). Which also means the minimum width is 8 (8*2 == 16 bytes). We should probably check for these limitations. There's a way to fix this, make the DMA transfer size sma...
by iabdalkader
Sun Apr 15, 2018 9:22 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 42
Views: 10148

Re: implement own Haar-Cascade

aqeelyaacob wrote:
Tue Apr 10, 2018 9:01 pm
it all done,thanks to you.But the detection still low rate,does i need to add more positive image during making a cascade?.here i attach the video and also coding
I'm not sure, maybe try a lower scaling factor (1.15).
by iabdalkader
Wed Apr 11, 2018 12:04 pm
Forum: Technical Discussion
Topic: NEOPIXEL AS A LED RING LIGHT
Replies: 3
Views: 247

Re: NEOPIXEL AS A LED RING LIGHT

It should work, if it doesn't let us know and we'll fix it.
by iabdalkader
Wed Apr 11, 2018 12:02 pm
Forum: Technical Discussion
Topic: draw_rectangle color mistake
Replies: 3
Views: 327

Re: draw_rectangle color mistake

Hi, it's not a bug, it's just the heavy JPEG compression. Try this:

Code: Select all

img.draw_rectangle((50,50,100,100),color=(255,0,0), thickness=2)
by iabdalkader
Wed Apr 11, 2018 11:24 am
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 42
Views: 10148

Re: implement own Haar-Cascade

hai,i got a problem here,when i try to convert the xml file using converter as here : https://github.com/openmv/openmv/blob/master/usr/openmv-cascade.py i got an error. So here i attach the xml file.Seem i stuck to convert to cascade file.After that,does the cascade embedded directly to camera or i...
by iabdalkader
Fri Apr 06, 2018 4:24 pm
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1016

Re: I2C troubles

gcgrant wrote:
Mon Mar 26, 2018 5:23 am
Note that I have this working now, and will upload the code once the competition and university assignment are completed, so that others wanting to integrate this Lidar with the OpenMV may do so.
Hi, can you share this script ? we're going to add it to the built-in examples.
by iabdalkader
Tue Mar 27, 2018 10:06 am
Forum: Technical Discussion
Topic: keypoint list?
Replies: 8
Views: 814

Re: keypoint list?

I think it's because of the low memory performance of the camera Yes the camera has limited amount of memory. Try to lower the number of keypoints (increase the thresholds). Can we use external memory as executable(ram) memory? It's possible but the camera doesn't have an external ram on board.
by iabdalkader
Fri Mar 23, 2018 12:08 pm
Forum: Technical Discussion
Topic: Cannot use openmv-cascade.py script for haarcascade of depth > 1
Replies: 4
Views: 404

Re: Cannot use openmv-cascade.py script for haarcascade of depth > 1

calvinmryan wrote:
Fri Mar 23, 2018 12:01 pm
So just to be clear - the haar cascade openmv class only operates with a haar cascade of tree depth 1?
Yes, and originally it only supported the old format, then someone contributed support for the new format with depth 1.
by iabdalkader
Fri Mar 23, 2018 11:39 am
Forum: Technical Discussion
Topic: Cannot use openmv-cascade.py script for haarcascade of depth > 1
Replies: 4
Views: 404

Re: Cannot use openmv-cascade.py script for haarcascade of depth > 1

However, it seems that the provided script to convert .xml haar cascades into .cascade files for the openmv cam doesn't handle trees deeper than 1
Hi, no the script doesn't handle that, and I'm not sure how those extra features should be handled in code.
by iabdalkader
Mon Mar 19, 2018 8:27 pm
Forum: General Topics
Topic: Mapping
Replies: 2
Views: 301

Re: Mapping

There's no one function to do that (yet) but maybe you can use keypoints and/or phase correlation.
by iabdalkader
Mon Mar 19, 2018 8:10 pm
Forum: General Topics
Topic: Configuring find_template function
Replies: 7
Views: 506

Re: Configuring find_template function

Hi, can you attach an image of the surface with and without the droplet ?
by iabdalkader
Wed Mar 07, 2018 8:45 pm
Forum: General Topics
Topic: Global Shutter
Replies: 7
Views: 6737

Re: Global Shutter

We don't really have official tutorials, but if you search the forums you'll find many posts about color tracking, wifi etc.. and the IDE comes with examples too that you should use as a starting point.

Go to advanced search