<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Taking images with IMX462 in Python]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">can I use the same scripts for python with IMX462 camera as I use for IMX327?</p>
<p dir="auto">I somehow cannot initialize the camera:</p>
<pre><code>import D_mipicamera as Dcam


camera = Dcam.mipi_camera()


camera.init_camera()

import os
status = os.system('sh ./veye_mipi_i2c.sh -w -f cameramode -p1 0x0 -b 10')
print status 

status = os.system('sh ./veye_mipi_i2c.sh -w -f daynightmode -p1 0xFC -p1 0x00 -b 10')
#print status 


##turn off automatic exposure
status = os.system('sh ./veye_mipi_i2c.sh -w -f agc -p1 0 -b 10')
print status 
##turn off white balance
status = os.system('sh ./veye_mipi_i2c.sh -w -f wbmode -p1 0x1b -b 10')
print status 



status = os.system('sh ./veye_mipi_i2c.sh -w -f lowlight -p1 0x09  -b 10')
print status 

directory="/home/pi/testmipi/"

date = datetime.datetime.now().strftime("%m_%d_%Y_%H_%M_%S")
frame = camera.capture(encoding = 'jpeg')

camera.release_buffer(frame)
del frame
time.sleep(1)

frame = camera.capture(encoding = 'jpeg')
frame.as_array.tofile((directory)+"nm590"+ date + ".jpg")
camera.release_buffer(frame)
del frame
</code></pre>
]]></description><link>http://forum.veye.cc/topic/102/taking-images-with-imx462-in-python</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:18:24 GMT</lastBuildDate><atom:link href="http://forum.veye.cc/topic/102.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Jul 2021 15:35:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Tue, 06 Jul 2021 00:28:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/seka" aria-label="Profile: seka">@<bdi>seka</bdi></a><br />
hi, VEYE-MIPI-IMX462 do not support YUV 10BIT/12BIT.</p>
]]></description><link>http://forum.veye.cc/post/640</link><guid isPermaLink="true">http://forum.veye.cc/post/640</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Tue, 06 Jul 2021 00:28:55 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 15:25:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/seka" aria-label="Profile: seka">@<bdi>seka</bdi></a> ```</p>
<pre><code>frame = camera.capture(encoding = 'i420')
       frame.as_array.tofile("test.yuv")
</code></pre>
<p dir="auto">probably like this??</p>
]]></description><link>http://forum.veye.cc/post/639</link><guid isPermaLink="true">http://forum.veye.cc/post/639</guid><dc:creator><![CDATA[Seka]]></dc:creator><pubDate>Mon, 05 Jul 2021 15:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 11:17:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> but yuv is 10 or 12 bit?? that would be ok for me too...</p>
<p dir="auto">Can you please adjust my code so that I capture in 10- or 12 bit YUV?</p>
<p dir="auto">Thank you</p>
]]></description><link>http://forum.veye.cc/post/638</link><guid isPermaLink="true">http://forum.veye.cc/post/638</guid><dc:creator><![CDATA[Seka]]></dc:creator><pubDate>Mon, 05 Jul 2021 11:17:38 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 11:09:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> Is there a way to capture with 10 or 12 bit depth as the sensor is capable of?</p>
<p dir="auto">This is part of the manual that I received from you.</p>
<p dir="auto">It seems like this is raw format, no?<br />
<img src="/assets/uploads/files/1625483253789-2a232b32-fa3f-4586-9ba4-19ce5535b17b-image.png" alt="2a232b32-fa3f-4586-9ba4-19ce5535b17b-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.veye.cc/post/637</link><guid isPermaLink="true">http://forum.veye.cc/post/637</guid><dc:creator><![CDATA[Seka]]></dc:creator><pubDate>Mon, 05 Jul 2021 11:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 10:56:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/seka" aria-label="Profile: seka">@<bdi>seka</bdi></a><br />
hi,<br />
This camera module can not output raw data.<br />
It has an ISP module built-in, the output format is YUV.</p>
]]></description><link>http://forum.veye.cc/post/636</link><guid isPermaLink="true">http://forum.veye.cc/post/636</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Mon, 05 Jul 2021 10:56:11 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 10:39:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> so is here a way to create raw images at all? with bash script?</p>
<p dir="auto">Can you please write a line of code in python or bash with which I can capture images in raw format?</p>
<p dir="auto">Many thanks</p>
]]></description><link>http://forum.veye.cc/post/635</link><guid isPermaLink="true">http://forum.veye.cc/post/635</guid><dc:creator><![CDATA[Seka]]></dc:creator><pubDate>Mon, 05 Jul 2021 10:39:51 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Mon, 05 Jul 2021 08:22:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/seka" aria-label="Profile: seka">@<bdi>seka</bdi></a><br />
sorry for reply late.<br />
I think this camera do not support [raw format].<br />
Since it only support YUV422(UYVY/YUYV), the python demo only support capture file format :<br />
IMAGE_ENCODING_JPEG, IMAGE_ENCODING_I420,IMAGE_ENCODING_BMP,IMAGE_ENCODING_PNG</p>
]]></description><link>http://forum.veye.cc/post/634</link><guid isPermaLink="true">http://forum.veye.cc/post/634</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Mon, 05 Jul 2021 08:22:51 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Fri, 02 Jul 2021 19:08:00 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Xu,<br />
ok, I can now initiate the camera but get another pointer access error when running:</p>
<pre><code> frame = camera.capture(encoding = 'raw')
    frame.as_array.tofile((directory)+"nm280"+ date + ".raw")
    camera.release_buffer(frame)
</code></pre>
<p dir="auto">The error I get is:</p>
<pre><code>In [48]: frame.as_array.tofile((directory)+"nm280"+ date + ".raw")
Traceback (most recent call last):

  File "&lt;ipython-input-48-46dc4d541567&gt;", line 1, in &lt;module&gt;
    frame.as_array.tofile((directory)+"nm280"+ date + ".raw")

  File "D_mipicamera.py", line 208, in as_array
    return np.ctypeslib.as_array(self.buffer_ptr[0].data, shape=(self.length,))

ValueError: NULL pointer access

</code></pre>
<p dir="auto">Can you please send me a line of code with which I can create a raw image ?</p>
<p dir="auto">Many thanks</p>
]]></description><link>http://forum.veye.cc/post/623</link><guid isPermaLink="true">http://forum.veye.cc/post/623</guid><dc:creator><![CDATA[Seka]]></dc:creator><pubDate>Fri, 02 Jul 2021 19:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Taking images with IMX462 in Python on Fri, 02 Jul 2021 08:03:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/seka" aria-label="Profile: seka">@<bdi>seka</bdi></a><br />
Hi，<br />
I think you need to run</p>
<pre><code>./rpi3-gpiovirtbuf s 133 1
</code></pre>
<p dir="auto">to power up VEYE-MIPI-IMX462 first. Because on imx462 module, the reset pin is effective.</p>
<p dir="auto">I will upgrade our  python demo later.</p>
]]></description><link>http://forum.veye.cc/post/616</link><guid isPermaLink="true">http://forum.veye.cc/post/616</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Fri, 02 Jul 2021 08:03:01 GMT</pubDate></item></channel></rss>