melexis-fir / mlx9064x-driver-py Goto Github PK
View Code? Open in Web Editor NEWMLX90640/41 python driver
License: Other
MLX90640/41 python driver
License: Other
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.
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?
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)
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.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.