Files
AVM360/surround_view/__pycache__/capture_thread.cpython-38.pyc

42 lines
2.8 KiB
Plaintext
Raw Normal View History

2026-04-01 14:11:47 +08:00
U
<00>
<EFBFBD>i<EFBFBD><00>@s@ddlZddlmZddlmZddlmZGdd<07>de<04>ZdS)<08>N)<01>qDebug<75>)<01>
BaseThread)<01>
ImageFramecsJeZdZddejddf<05>fdd<05> Zdd<07>Zdd <09>Zd
d <0B>Zd d <0A>Z <09>Z
S)<0E> CaptureThreadrTNcsBtt|<00><02>|<06>||_d|_||_||_||_t<08> <09>|_
d|_ dS)a|
device_id: device number of the camera.
flip_method: 0 for identity, 2 for 180 degree rotation (if the camera is installed
up-side-down).
drop_if_full: drop the frame if buffer is full.
api_preference: cv2.CAP_GSTREAMER for csi cameras, usually cv2.CAP_ANY would suffice.
resolution: camera resolution (width, height).
rN) <0C>superr<00>__init__<5F> device_id<69> flip_method<6F> drop_if_full<6C>api_preference<63>
resolution<EFBFBD>cv2<76> VideoCapture<72>cap<61>buffer_manager)<07>selfr r
r r r <00>parent<6E><01> __class__<5F><00>//home/ztl/LJ360/surround_view/capture_thread.pyr
s
zCaptureThread.__init__cCs<>|jdkrtd<01><01>|j<02><03>|jr4d|_|j<02><05>q<>|j<02><05>|j<06><07>|_|j<06> <09>|j<00>
|j <0B>|j <0C> <0A>snq|j <0C><0E>\}}|dks|jdkr<>q|jdkr<>t<11>|tj<13>}t|j<06><15>|<02>}|j<00>|j <0B><01>||j<18>qtd<05>dS)Nz9This thread has not been binded to any buffer manager yetFr<00>zStopping capture thread...)r<00>
ValueErrorZ
stop_mutex<EFBFBD>lock<63>stopped<65>unlockZclock<63>elapsedZprocessing_time<6D>start<72>syncr r<00>grab<61>read<61>sizer
r<00>rotate<74>
ROTATE_180rZmsecsSinceStartOfDay<61>
get_device<EFBFBD>addr r)r<00>_<>frameZ img_framerrr<00>run$s*



 


zCaptureThread.runcCs<>|j<00>|j<02>|j<00><03>s,td<01>|j<02><01>dS|jdk r<>|j\}}|j<00>tj tj
d<03><00>|j<00>tj |<01>|j<00>tj |<02>|j<00><03>s<>td<04>|j<06><01>dSdS)NzCannot open camera {}F<>YUYVz-Resolution not supported by camera device: {}T) r<00>openr <00>isOpenedr<00>formatr <00>setr<00>CAP_PROP_FOURCC<43>VideoWriter_fourcc<63>CAP_PROP_FRAME_WIDTH<54>CAP_PROP_FRAME_HEIGHT)r<00>width<74>heightrrr<00>connect_cameraRs



zCaptureThread.connect_cameracCs |j<00><01>r|j<00><02>dSdSdS)NTF)rr,<00>release<73>rrrr<00>disconnect_camerags

zCaptureThread.disconnect_cameracCs
|j<00><01>S)N)rr,r7rrr<00>is_camera_connectedpsz!CaptureThread.is_camera_connected) <0B>__name__<5F>
__module__<EFBFBD> __qualname__r<00>CAP_V4L2rr)r5r8r9<00> __classcell__rrrrrs<02>. r)r<00> PyQt5.QtCorerZ base_threadrZ
structuresrrrrrr<00><module>s