Code Monkey home page Code Monkey logo

mlx9064x-driver-py's People

Contributors

mlx-kva avatar wouterreusen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mlx9064x-driver-py's Issues

Frame buffer full - Error

Hi,

I try to read frames with raspberry pi connecting EVB9640 by USB and plot it. I can to read frames but I have an error that to say: ERROR: EVB90640: EVB Frame buffer full and I don't know how to fix it. I hope somebody help me.

Error using I2C Interface

Hi, I'm trying to use the driver with I2C interface. My camera is a MLX900640.

I've installed the lib using pip3 install

 pip install mlx9064x-driver

My code is :

import mlx.mlx90640 as mlx
dev = mlx.Mlx9064x('I2C-1', i2c_addr=0x33, frame_rate=8.0) # establish communication between EVB90640 and
                                                          # PC, the I2C address of the MLX90640 sensor is
                                                          # 0x33 and change the frame rate to 8Hz
dev.init()                      # read EEPROM and pre-compute calibration parameters.
frame = dev.read_frame()        # Read a frame from MLX90640
                                # In case EVB90640 hw is used, the EVB will buffer up to 4 frames, so possibly you get a cached frame.
f = dev.do_compensation(frame)  # calculates the temperatures for each pixel

And I'm giving the following error:

Traceback (most recent call last):
  File "main.py", line 2, in <module>
    dev = mlx.Mlx9064x('I2C-1', i2c_addr=0x33, frame_rate=8.0) # establish communication between EVB90640 and
  File "/home/pi/.local/lib/python3.7/site-packages/mlx/mlx90640.py", line 44, in __init__
    if self.hw.get_sensor_type(0x33) == 0:
AttributeError: 'HwRpiI2cHw' object has no attribute 'get_sensor_type'

What is wrong?

The delay is serious when the frame rate is 32 or 64

I use the code to get the frame and show the image, but the delay is very serious. Is there any way to fix it?

while(True):
      try:
          frame = dev.read_frame()
      except:
          dev.clear_error(32.0)
      else:
          if frame!=None:
              i+=1
              f = dev.do_compensation(frame)
              show_list_as_image(f) 

Reading Raw Frame

Hi, I am doing a project with an MLX90640 camera sensor.
I am using EVB90640-41 on the Windows platform. I want to get the raw data from each sub-page of the sensor. Could you please help me to do it with your libraries?
Thanks for spending time checking my question.

Problem with the do_handle_bad_pixels function

Hello,

I think you should add the '( )' brackets in the Bitwise Operator.
For example:
if pixel_i == 0 << 5 + 31:
should be:
if pixel_i == (0 << 5) + 31:

I have tested it, if not have the brackets, the result is getting wrong.

Error: 'NoneType' object is not subscriptable

Hello, I'm trying to access the MLX90641 using the EVB9064x and there is always an error when taking the frame of the sensor.

My code is

import mlx.mlx90640 as mlx

dev = mlx.Mlx9064x('auto', i2c_addr=0x33, frame_rate=8.0) # establish communication between EVB90640 and
                                                          # PC, the I2C address of the MLX90640 sensor is
                                                          # 0x33 and change the frame rate to 8Hz
dev.init()                      # read EEPROM and pre-compute calibration parameters.
frame = dev.read_frame()        # Read a frame from MLX90640
                                # In case EVB90640 hw is used, the EVB will buffer up to 4 frames, so possibly you get a cached frame.
f = dev.do_compensation(frame)  # calculates the temperatures for each pixel

and I'm having this error

Traceback (most recent call last):
  File "/home/pi/Desktop/mlx90640.py", line 9, in <module>
    f = dev.do_compensation(frame)  # calculates the temperatures for each pixel
  File "/home/pi/.virtualenvs/cv/lib/python3.7/site-packages/mlx/mlx90640.py", line 163, in do_compensation
    info_data = raw_frame[np:]
TypeError: 'NoneType' object is not subscriptable

Can you help me with this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.