Search found 427 matches

by iabdalkader
Sat Apr 21, 2018 2:10 pm
Forum: Technical Discussion
Topic: strange behavior with set_windowing
Replies: 6
Views: 32

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: 37
Views: 8578

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

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

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: 37
Views: 8578

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

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

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

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

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

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

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

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

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

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

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

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

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: 37
Views: 8578

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

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")
by iabdalkader
Tue Feb 27, 2018 3:26 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 37
Views: 8578

Re: implement own Haar-Cascade

No the script should work out of the box though, anyway we're going to add a built-in cascade converter to the IDE it's just a matter of time.
by iabdalkader
Mon Feb 26, 2018 7:37 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 37
Views: 8578

Re: implement own Haar-Cascade

here I converted the file for you.
by iabdalkader
Mon Feb 26, 2018 7:36 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 37
Views: 8578

Re: implement own Haar-Cascade

Can you run it from the terminal so we can see the error ?
by iabdalkader
Sat Feb 24, 2018 4:20 pm
Forum: Technical Discussion
Topic: f.write
Replies: 21
Views: 7492

Re: f.write

I just tested your script, and it's working on flash and SD card I see the file with pixel values.
by iabdalkader
Sat Feb 24, 2018 3:34 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 37
Views: 8578

Re: implement own Haar-Cascade

I don't know what conver.py is, please use our script:

./openmv-cascade.py haarcascade_fullbody.xml

Also Note it doesn't work on Windows.
by iabdalkader
Sun Feb 18, 2018 10:33 am
Forum: Technical Discussion
Topic: OpenMV power supply issue
Replies: 1
Views: 580

Re: OpenMV power supply issue

Sounds like a brownout, maybe adding two large caps on the input would help. I wouldn't waste time figuring out what the CPU is doing, if the conditions are not met it will be in an unpredictable state.
by iabdalkader
Fri Feb 16, 2018 9:55 am
Forum: General Topics
Topic: UART data communication to arduino board question?
Replies: 9
Views: 15587

Re: UART data communication to arduino board question?

Hi, can you test with a serial terminal and see if you're getting the expected data ?
by iabdalkader
Wed Feb 14, 2018 2:22 pm
Forum: General Topics
Topic: importing a *.bmp file
Replies: 8
Views: 5639

Re: importing a *.bmp file

I think you just need to add copy_to_fb=True.

Code: Select all

image.Image("file.bmp", copy_to_fb=True)
by iabdalkader
Wed Feb 14, 2018 6:46 am
Forum: General Topics
Topic: importing a *.bmp file
Replies: 8
Views: 5639

Re: importing a *.bmp file

Hi, please post your replies to this topic, don't create a new topic for each reply.

Use the Image class (note the capital I)

Code: Select all

image.Image("image.bmp")
You can't load a 900+KBs image see the memory limits in the documentation.
by iabdalkader
Sat Feb 10, 2018 4:21 pm
Forum: General Topics
Topic: importing a *.bmp file
Replies: 8
Views: 5639

Re: importing a *.bmp file

Hi, you have to copy the image to the camera's SD card first, the camera can't access files on your PC and then use this path:

Code: Select all

image.Image("/blkandwht.bmp")
by iabdalkader
Sat Feb 03, 2018 7:20 am
Forum: Technical Discussion
Topic: Error Flashing Custom Firmware
Replies: 5
Views: 2034

Re: Error Flashing Custom Firmware

Hi, try connecting NRST to RST pin.
by iabdalkader
Sun Jan 28, 2018 9:35 am
Forum: Technical Discussion
Topic: Slower than expected FPS
Replies: 17
Views: 9134

Re: Slower than expected FPS

Hi, The sensor outputs 120FPS, you can confirm this with the scope if you (carefully) scratch the VSYNC signal via and test that point (see the design files). The older firmware set the sensor output to VGA (which is limited to 60FPS) and down-scaled from VGA to lower resolutions. I changed that so ...
by iabdalkader
Sat Jan 27, 2018 5:58 pm
Forum: Technical Discussion
Topic: Slower than expected FPS
Replies: 17
Views: 9134

Re: Slower than expected FPS

Hi, are you using an old firmware ? If so you should update the firmware to the latest.
by iabdalkader
Fri Jan 26, 2018 4:14 pm
Forum: Technical Discussion
Topic: Power saving mode
Replies: 14
Views: 2274

Re: Power saving mode

Hi, use sensor.sleep(). you'll have to update the firmware first to the latest (2.7).
by iabdalkader
Wed Jan 24, 2018 11:46 am
Forum: Technical Discussion
Topic: run cascade file openmv3 automatically disconnects from IDE
Replies: 7
Views: 307

Re: run cascade file openmv3 automatically disconnects from IDE

Hi, the cascade generator doesn't work on Windows, we'll add it to the IDE at some point. If you got it working and it detects nothing, try changing the threshold and/or scale factor.
by iabdalkader
Tue Jan 23, 2018 12:11 pm
Forum: Technical Discussion
Topic: Problems with getting started with OpenMV Cam M7
Replies: 4
Views: 350

Re: Problems with getting started with OpenMV Cam M7

Could be a bad USB cable, you should try a different one.
by iabdalkader
Tue Jan 16, 2018 2:44 pm
Forum: Technical Discussion
Topic: implement own Haar-Cascade
Replies: 37
Views: 8578

Re: implement own Haar-Cascade

Hi, it seems the cascade tool only works on Linux.
by iabdalkader
Sat Jan 13, 2018 11:55 am
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 441

Re: pixel value

I will add it to the next release.
by iabdalkader
Fri Jan 12, 2018 1:23 pm
Forum: Technical Discussion
Topic: find template
Replies: 9
Views: 491

Re: find template

Hi, I can reproduce this bug, will look into it and get back to you.
by iabdalkader
Thu Jan 11, 2018 10:25 pm
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 441

Re: pixel value

If you just want the red value of every pixel then yes. RGB is interpolated from bayer but it's not exactly the "raw" value.
by iabdalkader
Tue Jan 09, 2018 8:58 pm
Forum: Technical Discussion
Topic: pixel value
Replies: 7
Views: 441

Re: pixel value

Hi, that's actually not supported. I didn't think anyone would be interested in bayer, will add it to the next release.
by iabdalkader
Tue Jan 09, 2018 2:54 pm
Forum: Technical Discussion
Topic: CAN CUMMUNICATION OSERROR:16
Replies: 2
Views: 283

Re: CAN CUMMUNICATION OSERROR:16

I'm not sure either, I don't have the hardware to test CAN. OSError 16 is "Device or resource busy" I found this on MP forums:
https://forum.micropython.org/viewtopic.php?t=1923
by iabdalkader
Fri Jan 05, 2018 5:41 pm
Forum: Technical Discussion
Topic: Runtime error: sensor timeout!
Replies: 1
Views: 281

Re: Runtime error: sensor timeout!

Hi, you need to call sensor.reset() and set the frame size and format before doing anything else. See the helloworld.py example.
by iabdalkader
Fri Jan 05, 2018 5:33 pm
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 458

Re: Waking from pyb.stop() ?

Hi, I'm happy to report that both stop mode and deepsleep mode are fixed and will be available in the next release (2.7). You can always test the development firmware if don't want to wait (you'll also find two new low-power example scripts in the repo).
by iabdalkader
Fri Jan 05, 2018 5:30 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 483

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

Hi, I'm happy to report that getaddrinfo is now fixed (it was just a timeout). The fix will be available in the next release as well as an MQTT example.
by iabdalkader
Thu Dec 21, 2017 2:15 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 8
Views: 565

Re: keypoint list?

Hi, this is now implemented in the development firmware. The keypoints match object has a list of matching keypoints indices (a list of tuples) you can use to subscript keypoints arrays. For example: for m in match.match(): print(kpts1[m[0]], kpts2[m[1]]) The keypoint is a tuple of (x, y, score, oct...
by iabdalkader
Wed Dec 20, 2017 3:16 pm
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 568

Re: realtime camera frame without IDE

I get about 80FPS not sure why it's slow on your machine. You shouldn't run this on VM if you are.
by iabdalkader
Wed Dec 20, 2017 10:09 am
Forum: General Topics
Topic: realtime camera frame without IDE
Replies: 8
Views: 568

Re: realtime camera frame without IDE

Hi, please use the latest script from the repo:

https://raw.githubusercontent.com/openm ... enmv-fb.py

And run it using Python2
by iabdalkader
Fri Dec 15, 2017 8:13 am
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 370

Re: Create image from feature

by iabdalkader
Thu Dec 14, 2017 8:11 pm
Forum: Technical Discussion
Topic: Create image from feature
Replies: 3
Views: 370

Re: Create image from feature

Do you want to save the cropped image to file ?
by iabdalkader
Thu Dec 14, 2017 11:22 am
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 483

Re: [MQTT] Using micropython lib: usocket.getaddrinfo

Hi, please try the attached script.

Go to advanced search