Search found 458 matches

by iabdalkader
Fri Jun 15, 2018 1:26 am
Forum: General Topics
Topic: Regarding openmv cam m7
Replies: 2
Views: 31

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: 3
Views: 44

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: 81

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: 3
Views: 44

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: 40

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: 81

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: 81

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: 111

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: 42

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: 147

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: 49

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: 68

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: 98

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: 103

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: 224

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: 224

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: 92

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: 121

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: 121

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: 92

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: 98

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: 713

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: 112

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: 713

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: 713

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: 713

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: 40
Views: 9925

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: 377

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: 434

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: 434

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: 40
Views: 9925

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: 235

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: 313

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: 40
Views: 9925

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: 991

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: 782

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: 394

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: 394

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: 290

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: 487

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: 6717

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.
by iabdalkader
Wed Mar 07, 2018 7:44 pm
Forum: General Topics
Topic: Global Shutter
Replies: 7
Views: 6717

Re: Global Shutter

Hi, our new camera will have an optional global shutter sensor module, in addition to the new H7 (400MHz) MCU upgrade. The new camera will be released this year (hopefully).
by iabdalkader
Wed Mar 07, 2018 6:50 pm
Forum: Technical Discussion
Topic: Updating firmware for OpenMV Cam 2
Replies: 12
Views: 11097

Re: Updating firmware for OpenMV Cam 2

nedhorning wrote:
Wed Mar 07, 2018 2:36 pm
I did try again but I got the same result. I also rebooted the computer but that didn't help either.
By same result you mean libusb error ? Can you please try

Code: Select all

sudo pip2 install pyusb

Note pip2.
by iabdalkader
Wed Mar 07, 2018 12:16 pm
Forum: Technical Discussion
Topic: Updating firmware for OpenMV Cam 2
Replies: 12
Views: 11097

Re: Updating firmware for OpenMV Cam 2

No it takes seconds to enumerate you should click ok just after you see the cam in DFU mode with lsusb.
by iabdalkader
Wed Mar 07, 2018 9:21 am
Forum: Technical Discussion
Topic: Updating firmware for OpenMV Cam 2
Replies: 12
Views: 11097

Re: Updating firmware for OpenMV Cam 2

Yes it's normal, you should see something like this if you run lsusb

Code: Select all

Bus 001 Device 006: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
by iabdalkader
Tue Mar 06, 2018 8:08 pm
Forum: Technical Discussion
Topic: Updating firmware for OpenMV Cam 2
Replies: 12
Views: 11097

Re: Updating firmware for OpenMV Cam 2

Hi, add a jumper wire between the BOOT and RST pins and nothing seems to be happening You should disconnect the USB cable and reconnect with the jumper betweent BOOT and RST (or 3.3v out). I'm not sure if the camera has a bootloader, the IDE probably doesn't flash the bootloader either. So let me kn...
by iabdalkader
Sat Mar 03, 2018 7:51 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 40
Views: 9925

Re: implement own Haar-Cascade

Hi download the script like so:

Code: Select all

wget https://raw.githubusercontent.com/openmv/openmv/master/usr/openmv-cascade.py
Then run it like this:

Code: Select all

python2.7 openmv-cascade.py cascade_file.xml
by iabdalkader
Wed Feb 28, 2018 8:43 am
Forum: Project Discussion
Topic: How to implement POST and GET
Replies: 1
Views: 229

Re: How to implement POST and GET

Just like you would in Python:

Code: Select all

sock.send("GET / HTTP/1.0\r\n\r\n")

Go to advanced search