Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cv_bridge.core.CvBridgeError: [8UC4] is not a color format. but [bgr8] is. The conversion does not make sense

# This is what worked for me to be able to write gray image on disk
...
cv_img = bridge.imgmsg_to_cv2(msg, desired_encoding="8UC4") # desired_encoding="passthrough"
cv2.imwrite(os.path.join(args.output_dir, "frame%06i.png" % count), cv_img[:,:,0])
...
Comment

PREVIOUS NEXT
Code Example
Python :: how to find the length of a list in scratch 
Python :: most occurring string in column pandas 
Python :: xpath helium 
Python :: wonsan 
Python :: truncate date to midnight in pandas column 
Python :: how to remove trackback on python when ctrl c 
Python :: anaconda create environment python version 
Python :: how to lock writing to a variable thread python 
Python :: how to get absolute path in python 
Python :: pandast change datetime to date 
Python :: # load multiple csv files into dataframe 
Python :: T-Test Comparison of two means python 
Python :: convert tibble to dataframe 
Python :: How to create an infinite sequence of ids in python? 
Python :: how to redefine a legend in pandas 
Python :: price for bazaar item hypixel python 
Python :: python strftime microseconds 
Python :: python record screen 
Python :: remove duplicates from list python preserve order 
Python :: sort by column dataframe pyspark 
Python :: grouping products for sales 
Python :: how to pronounce aesthetic 
Python :: python beep 
Python :: pandas replace empty string with nan 
Python :: rearrange list python 
Python :: access dataframe column with space 
Python :: Python Relative Strength Indicator 
Python :: python cache return value 
Python :: how to make any player hit a ball using python turtle 
Python :: how to change dtype object to int 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =