Search found 403 matches

by iabdalkader
Sun Feb 18, 2018 10:33 am
Forum: Technical Discussion
Topic: OpenMV power supply issue
Replies: 1
Views: 479

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: 7
Views: 12721

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: 5
Views: 5308

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: 5
Views: 5308

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: 5
Views: 5308

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: 1
Views: 1508

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

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

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

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

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

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: 16
Views: 3731

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

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

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

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

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

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

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

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

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: 6
Views: 216

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

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

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

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

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

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

Hi, please try the attached script.
by iabdalkader
Wed Dec 13, 2017 1:57 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 285

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

No, but it should be just like normal Python code, there's also a GET example in the WiFi shield examples. If you tell me how to test the MQTT library I can help debug it (server name? what happens, what should happen etc..)
by iabdalkader
Tue Dec 12, 2017 8:07 pm
Forum: General Topics
Topic: face_recognition.py example not working
Replies: 4
Views: 244

Re: face_recognition.py example not working

Hi, please follow the instructions in the comments: # Before running the example: # 1) Download the AT&T faces database http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip # 2) Exract and copy the orl_faces directory to the SD card root. Note this is very very simple face recognit...
by iabdalkader
Tue Dec 12, 2017 7:59 pm
Forum: Technical Discussion
Topic: [MQTT] Using micropython lib: usocket.getaddrinfo
Replies: 7
Views: 285

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

Hi, getaddrinfo() resolves a hostname to an ip using the DNS server, for example: addr = usocket.getaddrinfo("www.google.com", 80)[0][4] # Create a new socket and connect to addr s = usocket.socket(usocket.AF_INET, usocket.SOCK_STREAM) s.connect(addr) Sometimes it doesn't work and throws an exceptio...
by iabdalkader
Tue Dec 12, 2017 7:34 pm
Forum: Technical Discussion
Topic: Import micropython-lib
Replies: 5
Views: 229

Re: Import micropython-lib

That's because there's no libc to load, there are no FDs and there's only a single process running anyway. The camera runs baremetal (it's Not Unix/Linux based).
Screenshot from 2017-12-13 02-22-40.png
Screenshot from 2017-12-13 02-22-40.png (64.56 KiB) Viewed 204 times
by iabdalkader
Tue Dec 12, 2017 7:20 pm
Forum: Project Discussion
Topic: Recognize circles of a given color
Replies: 2
Views: 227

Re: Recognize circles of a given color

Hi, you could check the color at the circle center if it's a filled circle, or check the pixels on the circle's circumference if it's empty. For example: # For filled circle: r,g,b = img.get_pixel(c.x(), c.y()) if r > 200 and g < 25 and b < 25: print("red circle") # For empty circle (you may want to...
by iabdalkader
Tue Dec 12, 2017 7:08 pm
Forum: General Topics
Topic: lovely openmv-fb.py and openmv.py won't run
Replies: 3
Views: 199

Re: lovely openmv-fb.py and openmv.py won't run

Hi, I fixed it for you
https://github.com/openmv/openmv/blob/m ... enmv-fb.py

But note those scripts (and the PyGTK IDE) are no longer supported, we keep them around for reference.
by iabdalkader
Mon Dec 11, 2017 8:41 pm
Forum: Technical Discussion
Topic: keypoint list?
Replies: 6
Views: 216

Re: keypoint list?

Hi, I would think it would be something analogous to a list of cv::Keypoint. I'll add this to the next release, however note each keypoint consumes a lot of memory (the descriptor alone is 32 bytes), converting a list of keypoints to Python objects could make the camera run out of memory, so this mi...
by iabdalkader
Thu Dec 07, 2017 7:06 am
Forum: Project Discussion
Topic: OpenMV IDE coding for gear motor
Replies: 2
Views: 227

Re: OpenMV IDE coding for gear motor

Hi, you should post the code you have so far maybe someone could help you improve it.
by iabdalkader
Thu Dec 07, 2017 7:03 am
Forum: Project Discussion
Topic: new pixel value calculation
Replies: 3
Views: 192

Re: new pixel value calculation

Hi, please see the docs for get_pixel() and set_pixel().
by iabdalkader
Thu Dec 07, 2017 5:08 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 568

Re: Upgrading to 1.9.3

You need to update to 2.7 (development image) here:

https://github.com/openmv/openmv/tree/m ... re/OPENMV3
by iabdalkader
Wed Dec 06, 2017 2:01 pm
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 568

Re: Upgrading to 1.9.3

Hi, this issue is fixed now, but it won't be released for a while. Here's what you need to do if you want to update the firmware: * Download and update OpenMV firmware (firmware.bin): https://github.com/openmv/openmv/tree/master/firmware/OPENMV3 * Download the WINC1500 firmware image (winc_19.5.2.bi...
by iabdalkader
Wed Dec 06, 2017 7:20 am
Forum: Technical Discussion
Topic: Camera FOV
Replies: 3
Views: 191

Re: Camera FOV

This depends on the lens you have. For example the wide angle lens has a 185 degree FOV. The standard lens that ships with your OpenMV Cam has a 115° FOV.
by iabdalkader
Sun Dec 03, 2017 4:27 pm
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 271

Re: Waking from pyb.stop() ?

Hi, there's no fix for deep sleep issues yet, I still need to test it with the new IDE. I'll report back as soon as I do that.
by iabdalkader
Sat Nov 18, 2017 8:59 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 568

Re: Upgrading to 1.9.3

Yes I'll post an update here.
by iabdalkader
Fri Nov 17, 2017 2:14 pm
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 568

Re: Upgrading to 1.9.3

There's a script included with the IDE to update the module's firmware, it's really easy to use you just copy the firmware binary to SD and run the script. However I have to pull the latest host driver + firmware from ASF first, merge, upload to a module via serial, test and then dump the binary. Th...
by iabdalkader
Fri Nov 17, 2017 8:52 am
Forum: Technical Discussion
Topic: Upgrading to 1.9.3
Replies: 10
Views: 568

Re: Upgrading to 1.9.3

Hi, this class is specific to ESP8266 (you can't use it with our WiFi module even if we update to 1.9.3). Currently there's no way to change the host name of WINC1500, it should set the host name to WINC-mac_addr[1]-mac_addr[0]. However, that doesn't seem to happen (looking at my router's DHCP table...
by iabdalkader
Fri Nov 17, 2017 7:59 am
Forum: Technical Discussion
Topic: How can uart1 of M7 OPENMV work?
Replies: 8
Views: 1223

Re: How can uart1 of M7 OPENMV work?

Hi, please try the latest firmware release (2.6)
by iabdalkader
Fri Nov 17, 2017 7:57 am
Forum: Technical Discussion
Topic: Waking from pyb.stop() ?
Replies: 7
Views: 271

Re: Waking from pyb.stop() ?

Hi, we're still working on low power modes (specifically I need the IDE to wait for longer to test sleep and wake up via RTC). The only implemented low-power function in the latest release is sensor.sleep(True) (there should be an example in the new IDE release, but you can call this function if you...
by iabdalkader
Thu Nov 16, 2017 10:03 am
Forum: General Topics
Topic: Auto focus
Replies: 2
Views: 247

Re: Auto focus

No the lenses have to be adjusted manually.
by iabdalkader
Sat Nov 04, 2017 6:12 pm
Forum: General Topics
Topic: Relay Shield
Replies: 3
Views: 229

Re: Relay Shield

This is a perfect project for the proto-shield.
by iabdalkader
Fri Nov 03, 2017 5:32 pm
Forum: Technical Discussion
Topic: LCD Shield just showing white screen
Replies: 3
Views: 163

Re: LCD Shield just showing white screen

Hi, sometimes the header pins on the camera short when soldering them. If you can check the SPI pins on the camera it will help us narrow down the issue and send you the right replacement. Also I've seen cloned LCD shields that don't work with our cams (not sure why). If you have a cloned shield thi...
by iabdalkader
Fri Nov 03, 2017 3:51 pm
Forum: Technical Discussion
Topic: trained haar classifier could not run properly
Replies: 26
Views: 2798

Re: trained haar classifier could not run properly

flash_togo wrote:
Fri Nov 03, 2017 12:29 am
tested still freeze. if you have any cascade file I can load and test without problem,
I will redo the process of training and come up with a more solid result.
The files I sent you only run 5 stages.
Is this an LBP or HoG cascade ? Those are not supported.

Go to advanced search