A lot of time when you are in a situation where you need to click a picture as evidence but you can't because The camera usage is not allowed in the room, Do you know you can anonymously click pictures using termux? To click Pictures with termux we use Termux-API. If don't know about termux, please check out this post What is termux { অনেক সময় যখন আপনি এমন পরিস্থিতিতে থাকেন যেখানে আপনাকে প্রমাণ হিসাবে কোনও ছবিতে ক্লিক করতে হবে তবে ঘরে ক্যামেরা ব্যবহারের অনুমতি নেই বলে আপনি পারবেন না, আপনি কি জানেন যে আপনি বেনামে টার্মাক্স ব্যবহার করে ছবিতে ক্লিক করতে পারেন? টার্মাক্স সহ ছবি ক্লিক করতে আমরা Termux-API ব্যবহার করি। যদি টার্মাক্স সম্পর্কে জানা না থাকে তবে দয়া করে টার্মাক্স কী তা এই পোস্টটি দেখুন{
To make Interaction between Your phone and termux we have to install Termux-API. This means You can access your Phone's APIs using Your Command-line Interface of Termux. with the Help of termux API you can read SMS as well as call logs from your terminal. Access Sensors Available in your phone Like GPS sensor and vibrator. It also gives you a text-to-Speech Engine as well as your camera and microphone. { আপনার ফোন এবং টার্মাক্সের মধ্যে ইন্টারঅ্যাকশন করতে আমাদের Termux-API ইনস্টল করতে হবে। এর অর্থ আপনি আপনার কমান্ড-লাইন ইন্টারফেসের টার্মাক্স ব্যবহার করে আপনার ফোনের API গুলি অ্যাক্সেস করতে পারেন। টার্মাক্স এপিআই এর সাহায্যে আপনি এসএমএস পড়ার পাশাপাশি আপনার টার্মিনাল থেকে কল লগগুলি পড়তে পারেন। আপনার ফোনে উপলব্ধ সেন্সরগুলি জিপিএস সেন্সর এবং ভাইব্রেটারের মতো উপলব্ধ। এটি আপনাকে একটি পাঠ্য থেকে স্পিচ ইঞ্জিনের পাশাপাশি আপনার ক্যামেরা এবং মাইক্রোফোনও দেয়।}
This command will check the dependencies and update them to the current date.You can Skip this command if you want but sometimes while installing packages you get Errors so it is a good practice to use this command. { এই কমান্ডটি নির্ভরশীলতাগুলি পরীক্ষা করবে এবং সেগুলি বর্তমান তারিখে আপডেট করবে আপনি চাইলে এই আদেশটি এড়িয়ে যেতে পারেন তবে প্যাকেজ ইনস্টল করার সময় আপনি ত্রুটিগুলি পান তাই এই কমান্ডটি ব্যবহার করা ভাল অনুশীলন।}
To give Termux your phone access you have to install termux API. To Install Termux-API You have to use the below command. { টার্মাক্সকে আপনার ফোনের অ্যাক্সেস দেওয়ার জন্য আপনাকে টার্মাক্স এপিআই ইনস্টল করতে হবে। টার্মাক্স-এপিআই ইনস্টল করতে আপনাকে নীচের কমান্ডটি ব্যবহার করতে হবে।}
Check if the Termux-API add-on is installed in your phone. {আপনার ফোনে Termux-API অ্যাড-অন ইনস্টল করা আছে কিনা তা পরীক্ষা করুন।}
Install Termux-API Add-on here : {এখানে Termux-API অ্যাড-অন ইনস্টল করুন:}
To check all the available camera you need to use the below command. {সমস্ত উপলব্ধ ক্যামেরা চেক করতে আপনার নীচের কমান্ডটি ব্যবহার করতে হবে।}
by using below command you will get the list of you cameras and their configurations. {নীচের কমান্ড ব্যবহার করে আপনি আপনার ক্যামেরা এবং তাদের কনফিগারেশনগুলির তালিকা পাবেন।}
You have to check for the camera Id e.g: my camera Id for back-camera is 0 and for front-camera is 1. {আপনাকে ক্যামেরা আইডির জন্য যাচাই করতে হবে উদাহরণস্বরূপ: ব্যাক ক্যামেরার জন্য আমার ক্যামেরা আইডি 0 এবং সামনের ক্যামেরার জন্য 1}
The command to click image using termux is given below.
You can paste the below command and you will get a photo clicked by your front camera in your internal storage. { টার্মাক্স ব্যবহার করে ছবিতে ক্লিক করার কমান্ডটি নীচে দেওয়া হয়েছে।
আপনি নীচের কমান্ডটি পেস্ট করতে পারেন এবং আপনার অভ্যন্তরীণ স্টোরেজে আপনার সামনের ক্যামেরা দ্বারা ক্লিক করা একটি ফটো পাবেন}
I am using -c 1 where the 1 is the camera ID change the -c 1 to - c 0 and you will get a photo from back camera. {আমি -c 1 ব্যবহার করছি যেখানে 1 হ'ল ক্যামেরা আইডি -c 1 থেকে c সি পরিবর্তন করুন এবং আপনি ব্যাক ক্যামেরা থেকে একটি ফটো পাবেন।}
You can also change the path (the green part in the command) with your own green path to save the clicked photo in any secret folder.{ আপনি যে কোনও গোপন ফোল্ডারে ক্লিক করা ফটোটি সংরক্ষণ করতে আপনার নিজের সবুজ পাথ দিয়ে (কমান্ডের সবুজ অংশ) পাথও পরিবর্তন করতে পারেন।}