I've got two error messages:
cv::mat::deallocate
cv::fastFree(void *)
While I was trying to compile my OpenCV and QT project. I am fighting with this problem for fifth day. Please guys if you know how I can solve this problem, write it here.
PS: I've uploaded an image.
http://postimg.org/image/wsyq8daf5/
After this day, my problem with the camera was totally solved.There are no more problems.Now i will continue my GUI project thanks to all of you guys.After 1-2 months i will start searching for how to write printer driver ;), but however.Thanks too all again. ;)
Finally i solved my problem using the QCamera class.Well guys, use QCamera, you don't need anything else to capture videos or images.Read everything about it and bye bye ;)
Related
I have a very trouble with Gamemaker 8.1.
So recently, I've followed this video tutorial which shows creating a game 3D on its game engine.
https://www.youtube.com/watch?v=0Jo0JEEukhc
I tried to test my game, but an error message shows
this.
What caused that error? Here is the code so I hope you can fix it as well.
direction -= (display_mouse_get_x() -(display_get_width()/2))/5
zto -= (display_mouse_get_y() -(display_get_height()/2))/2
display_mouse_set(display_get_width()/2,display_get_height()/2)
xto = lengthdir_x(100,direction)+x
yto = lengthdir_y(100,direction)+y
d3d_set_projection(x,y,z,xto,yto,zto,0,0,1)
draw_set_color(c_white)
d3d_draw_floor(0,0,0,room_width,room_height,0,background_get_texture(floor_tex),room_width/128,room_height/128)
d3d_draw_floor(0,0,100,room_width,room_height,100,background_get_texture(root_tex),room_width/128,room_height/128)
Also, the version of Gamemaker is 8.1.141 (r11549)
Thanks
Cheers
-Sajad Sadiq Abd Amhamad
In the video, the author creates two Background resources around 0:25, called floor_tex and roof_tex (mistyped as root_tex in your code). You'd want to either name your resources accordingly or adjust your code to match the names in your project.
I can succesfully save video which I captured from c++ opencv there is no problem.
Bu similar code not capturing the video. Just opening out.avi . and only 6 kb.
I put the code in showframe func. there is no resizing fyi.
Anybody has experience with the opencv videowriter on the Qt?
void Widget::show_frame(Mat &image)
{
Mat resized_image = image.clone();
video.write(image);
int width_of_label = ui->label_camera->width();
int height_of_label = ui->label_camera->height();
Size size(width_of_label, height_of_label);
// cv::resize(image, resized_image, size);
cvtColor(image,image,CV_BGR2RGB);
cvtColor(resized_image, resized_image, CV_BGR2RGB);
ps : Platform MacOSX
I encountered the same problem with you, and I have tried many solutions, I think you can make the fifth parameter of videowriter() be false. That is, VideoWriter out = VideoWriter(video_name, CV_FOURCC('D', 'I', 'V', 'X'),frame_fps,Size(frame_width,frame_height),false). This works for me!
make sure that your application has access to the opencv_ffmpeg*.dll. For example place it in the working directory or the PATH variable.
Try different codecs, too. Afaik, MJPG did work on all tested machines/systems so far.
I've been using Cloud 9 (ace-editor) for a while, and recently we made an local server-cache solution that allow us to store local cachefiles of previewfiles from cloud9.
When I include a file directly from preview.c9, it works! But when I run the local cache version I end up with a file looking like this
‹������ÅXmoÛ6þî_Á¹Ü‘å·$ŽŠaÅú2Y»�Éö¥ÛJ¢mV/Ô(*MZô¿ïŽ/2¥ÈA‹í‡$6yw<Þ=÷Ü1Ï’•5Sdüçõ«`=~:z¶¥
64aäãˆûàù]D&q“òD”“§°SË$"ÌOÂ0ͧ©U,n›šIP¬TÓDa.V'ç'³³y˜¤e Y-™°:Lr2ÁV6¥
+)2æ 'ƒ&—¸’†xxhÏœ2¡~^-ÖëÓ“³ÅäÉ÷öàg~;y’U'¬ˆYš²4Üë®b“'Çß2<ïÅfãŧõ׿±+J
z¢dþC`ê›m—GÀû¼Á¶A“Fú{Æ·;‘³š#Èôrîr¶_ý4ŠEzw<ªŽGuEËãÝ×JÍ?€ä|]ݶÚjËçòš\Ѳž“þP*|ótôi´›÷õWV¿ rËË J‰""Ëš…E_a±òt·ˆEž¢‰È…ŒÈ£Ùl†ÚÓX•Z?2e°1¯nI-rž¢ÈâùÉ
•Ìf iÊ›:" é‚ѹáÞ¶STìV)K„¤Š‹ÃV2Ô®DÍÍŠd9ìÝèÕ”×UN]x™ó’q.’ŒüÀ‹JHEK¥5išòr‘Ss¼þÈFú*•‘r¶ôN䢘A±ZÛ»Bc¸y£»‚ç[F‹ÈxŒ_cšd[)š2
xA·oäÁRU}&*)ÊtÇ8^±
y!’!zU¿ÃS€¥æ8ï(É*F56Fñ#º&4`“ÿ÷<U»ˆ,t�:ž`âM(/QÕ„jn!…á|«�nLý4ŽsZŽÿéDVšƒVÈGt®µÚˆMþfñìTw]J®l%¢#¦ÄQµÙ#¹{.ÏážG!¬Ù›ÒF ñu’ÃéV¢ŠH�à÷£1û¿Y8Eê˜Ò"UCÔUÒÛ$§u
1C,½ ݇ã=qú?pÙ‰è؆TCÔÅËáÂ1†p#• (¹²YÔµT¤ƒfxÈÓðF�øÓÍÐcººÛ�RIJ뢇_4¥#ìûáGªØø•-��j²)K}}³³3t§Ÿ9Ÿ‹|ðï,Ò}”«
Çm`Ïh\Ìá{'¢ֺ-¤¹-Ñ>ÅÛå=d}²üð2e·Pà÷£CøFÒÂðÛÏ–ßØ3©ð¨€Ö
Ž®`ˆåçƒÜÌaÍOškS³a¼\!²Ì¼ÐnÞ±èëáEgÚ«>›˜™`OKºÿb<ÔÛfH+PÖ–¿°Óú°¶¬‡·MÍt~Â
]¾v08 =â``ìöÙSëW[_~GC¼¶Éëwi0?]{øûõyðœ–
t»Yßo7_—7ô_
m‡àÁªuÖ¶×躳¤[í´¿¶ýÀ¼¥n9U'¥Èô(DH>~RôÈçÓÝl¢hœú°³ÉiUÃ|ã>íÁÀä›è™˜h¨ý* 3nE%¼†P ÇH½GŸ½›8úµ³îË”«×¬l®¹ÂQüx%ÖÌÏ0p ùç;ZnÙËœpÞ5<¿"‚ï
Üršo€#rÅ2±jÑÐõRçó³¼fy.
…<’£~e‹þ£wžõô*ãyÎ4×hO»î\JžeL1CFž)¿õvUzýutæ¦úwP+É+è®\Óüˆ‰V4u-í0F;&„¯á‘ÉÊàùRnQiw2uá\µ—Õ”:Ü_˜¤kɲ¬® päóÏ í«¥wÄEI«ÊØw;ÆÍßé–d¸ÙªïŸNÒºù[†C·‘ÓcÐÏÀÅ/í|î n%v¢¿JªŸvtªí%úQã§Äøx‘H¿gLØû×=¹¸‰]±º»X|—,Æv=qü·LÆî¿A4†«(Js5 ú‹l çžÕ*Jš>×uâBox’7Ï´®Ø%>D0µ:F5¼>N½Rï˜Äd+˜Šd#î…È,~O0¡9+ÓA«z«s›ÙnȨцGúél¼„øýÊ{#¶-ȼ´¸ÆÉaºL¡gù
1‡Î鬧 ‘ó€BÊPâ] è°Òz‰ÔwËé°
oT�P¨Ìú*X‡5ÎÙyï�Øâñ¢'ŽX–Çì-ú±Ä”^¯úÆ쪜Ÿë\x‰0Ø;¨°ŽÏô`lþZvx²��
Any idea of whats cousing this?
PS: Sorry for poor english
Found an error in the encoding import.
I will return with the error / and fix as soon I get it firmly tested.
When I do
#include <inttypes.h>
long long value = 0;
printf("An 8 byte long integer value: %"PRId64".", value);
Eclipse shows me a syntax error in the printf line. Anybody knows how to get rid of it? This is the only way I know to have a printf working on both 32-bit and 64-bit architectures and Eclipse errors every few lines make it quite hard to see the real issues.
Thanks!
The question was answered here.
You need to add __STDC_FORMAT_MACROS in Project Properties->C/C++ General->Paths and Symbols.
I'm a newbie in IDA (and reverse engineering).
I'm trying to use the "patch->assembly" option in the edit->patch menu, but it fails with an error I cannot understand.
My current line is "jnz short func" (where func is a label I renamed from loc_xxxx), and I am trying to change it to "jmp short func", but when I click OK I get a message box with the message: "cannot reach destination from current location".
Can anyone explain What does that mean and why doesn't it work? I tried to search all over and I can't find any answer!
I must also add that I'm doing this as part of an IDA tutorial I found (in tut4you.com).
Thanks again for your help, I'm really stuck with that!
"jnz short func" and "jmp short func" instructions doesn't have the same number of bytes..Try to keep code alignment with the original code..
Also jnz, jz, ja,..(conditional jumps) don't work with far pointers (i.e. intersegment).. but only jmp..