Error in mx.internal.im2rec(image_lst, root, output_rec, label_width, : could not find function "mx.internal.im2rec"

I want create .rec file in R using im2rec function
my train.lst contains
0 6 6 4 3 train/C:/Users/adm/Downloads/pic/captcha_example.png

library(“mxnet”)
im2rec(image_lst=“C:/Users/adm/Desktop/train.lst”, root=‘C:/Users/adm/Downloads/captcha_example’,
output_rec=‘C:/Users/adm/Desktop/my.rec’, label_width = 4L, pack_label = 0L,
new_size = -1L, nsplit = 1L, partid = 0L, center_crop = 0L,
quality = 95L, color_mode = 1L, unchanged = 0L, inter_method = 1L,
encoding = “.png”)

then i get the error
Error in mx.internal.im2rec(image_lst, root, output_rec, label_width, :
could not find function “mx.internal.im2rec”

What’s wrong

Unfortunately, im2rec doesn’t work from R. There is an open issue about that, but so far it hasn’t been done: https://github.com/apache/incubator-mxnet/issues/7273

Please, use python or C++ to generate both .lst and .rec files. Take a look at this tutorial for more information: https://github.com/leocvml/mxnet-im2rec_tutorial