Merge pull request #59 from omanhom/main

修正使用webrtc推流时全身问题
main
Hengzhong 1 year ago committed by GitHub
commit fafa862ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -157,7 +157,7 @@ class NeRFReal:
if self.opt.transport=='rtmp': if self.opt.transport=='rtmp':
self.streamer.stream_frame(image_fullbody) self.streamer.stream_frame(image_fullbody)
else: else:
new_frame = VideoFrame.from_ndarray(image, format="rgb24") new_frame = VideoFrame.from_ndarray(image_fullbody, format="rgb24")
asyncio.run_coroutine_threadsafe(video_track._queue.put(new_frame), loop) asyncio.run_coroutine_threadsafe(video_track._queue.put(new_frame), loop)
#self.pipe.stdin.write(image.tostring()) #self.pipe.stdin.write(image.tostring())
for _ in range(2): for _ in range(2):

Loading…
Cancel
Save